Another option would be to use the Time::Piece module. It replaces the built in localtime function with an object based method.
You could then do something like this:
use Time::Piece; my $t = localtime($epoch); print $t->strftime("%m/%d/%y %H:%M:%S");
In reply to Re: Is there a way to convert epoch time into mm/dd/yy hh:mm:ss
by Belgarion
in thread Is there a way to convert epoch time into mm/dd/yy hh:mm:ss
by TASdvlper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |