go ahead... be a heretic | |
PerlMonks |
Re: Human Readable Dateby edan (Curate) |
on Jan 18, 2005 at 10:24 UTC ( [id://422961]=note: print w/replies, xml ) | Need Help?? |
What's wrong with the perl builtin functions localtime or gmtime? To get a human readable string from epoch time you can simply:
Substitute localtime with gmtime if you need GMT time. If you want more control over the format of the time, look at POSIX::strftime(), as in the following example:
In Section
Seekers of Perl Wisdom
|
|