note
mitd
time() returns the number of SECS since Epoch. Epoch can vary
from OS to OS but localtime(time) if used in a scalar context will return a human readable date.
<code>
my $datetime = localtime(time);
# returns Thu Nov 22 13:05:26 2001
# (well at least it did at the time() )
</code>
For your continuing date manipulation needs [cpan://Date::Calc], [cpan://Date::Manip] and [cpan://Date::Format] will quickly become your friends.
<p>
<a href="/index.pl?node=mitd&lastnode_id=1072">mitd</a>-Made in the Dark<br>
'Interactive! Paper tape is interactive!<br>
If you don't believe me I can show
you my paper cut scars!'
126998
126998