in reply to How can I convert epoch seconds to date format
Use the strftime function from POSIX.pm.
use POSIX 'strftime'; my $date = strftime '%Y/%m/%d %H:%M:%S', localtime $epoch;
p.s. I corrected your illogical US date format to something more sensible :)
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I convert epoch seconds to date format
by ikegami (Patriarch) on May 10, 2006 at 14:54 UTC | |
by gellyfish (Monsignor) on May 10, 2006 at 14:59 UTC | |
by ikegami (Patriarch) on May 10, 2006 at 16:01 UTC | |
|
Re^2: How can I convert epoch seconds to date format
by Anonymous Monk on May 10, 2006 at 16:30 UTC |