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.
in reply to time & localtime() function Q?
For your continuing date manipulation needs Date::Calc, Date::Manip and Date::Format will quickly become your friends.
my $datetime = localtime(time);
# returns Thu Nov 22 13:05:26 2001
# (well at least it did at the time() )
mitd-Made in the Dark
'Interactive! Paper tape is interactive!
If you don't believe me I can show
you my paper cut scars!'