Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: seconds since the epochby igelkott (Priest) |
on Mar 16, 2008 at 00:45 UTC ( [id://674407]=note: print w/replies, xml ) | Need Help?? |
"Seconds since the epoch" is the optional argument to "localtime". So
my $date = localtime $epoch provides the basic data string according to the value of $epoch.
Formatting dates can be done is many different ways and you'll most certainly see some in other replies or the documentation.
In Section
Seekers of Perl Wisdom
|
|