in reply to Time in Perl
As good monk belg4mit said, localtime is likely may be what you're looking for. The local perldoc is your friend, as is the PerlMonks search form at the upper left. But to get you started, try QandASection: dates and times, which contains several examples that may help.
Update: Depending on what you're going to do with your human-readable date/timestamp, printf (print a formatted string) and sprintf (return a formatted string) may also be worth delving into.
Oh yeah, and welcome to the Monastery!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Time in Perl (examples in PerlMonks Q&A dates-and-times section, plus (s)printf)
by {NULE} (Hermit) on Apr 28, 2002 at 14:50 UTC |