use POSIX qw(strftime); $now_string = strftime "%a %b %e %H:%M:%S %Y", localtime; # esetleg GMT formájú: $now_string = strftime "%a %b %e %H:%M:%S %Y", gmtime;