That's what the localtime function does. Pass it a number of epoch seconds and it'll return an array of values that you can use to build a human-readable date.
Or, even easier, use localtime in conjunction with the POSIX::strftime function.
--use POSIX 'strftime'; my $epoch = 985015768; print strftime('%d/%m/%Y', localtime($epoch));
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Convert epoch seconds to date
by davorg
in thread Convert epoch seconds to date
by Woody
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |