in reply to Is there a way to convert epoch time into mm/dd/yy hh:mm:ss
perldoc -f localtime
Here's an application of the doco for you:
Should work both on *nix and *doze.my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); my $date=sprintf("%0.2d/%0.2d/%0.2d %0.2d:%0.2d:%0.2d", $mon+1,$mday,($year-100), $hour,$min,$sec);
|
|---|