use POSIX 'strftime'; my $epoch = 985015768; print strftime('%d/%m/%Y', localtime($epoch));