in reply to time & localtime() function Q?
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.
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!'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: time & localtime() function Q?
by fuzzysteve (Beadle) on Nov 23, 2001 at 06:49 UTC | |
Re: Re: time & localtime() function Q?
by Gerryjun (Scribe) on Nov 22, 2001 at 23:12 UTC | |
by mitd (Curate) on Nov 22, 2001 at 23:24 UTC | |
by Gerryjun (Scribe) on Nov 23, 2001 at 00:41 UTC | |
by Boldra (Deacon) on Nov 23, 2001 at 01:30 UTC | |
by mitd (Curate) on Nov 23, 2001 at 01:37 UTC |
In Section
Seekers of Perl Wisdom