use POSIX qw/strftime/; my $expdate = strftime('%a, %d-%b-%Y %H:%M:%S GMT+', gmtime(time + 10800) );