use strict; use warnings; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(1226667500); printf("%02d/%02d/%04d %02d:%02d:%02d\n", $mday, $mon+1, $year+1900,$hour, $min, $sec);