POSIX::strftime is a quick and easy way to do this sort of thing. Despite its name, it seems to work fine on my Windows copy of ActiveState Perl.
It can be used in conjunction with localtime:
perl -MPOSIX -e"print strftime('%m/%d/%y %H:%M:%S', localtime(10823928 +15));" 04/19/04 12:40:15
In reply to Re: Is there a way to convert epoch time into mm/dd/yy hh:mm:ss
by sgifford
in thread Is there a way to convert epoch time into mm/dd/yy hh:mm:ss
by TASdvlper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |