use Time::Piece; my $t = localtime($epoch); print $t->strftime("%m/%d/%y %H:%M:%S");