No such thing as a small change | |
PerlMonks |
Re: How to get time in perl?by trammell (Priest) |
on Jul 07, 2005 at 01:39 UTC ( [id://472992]=note: print w/replies, xml ) | Need Help?? |
Just call localtime in scalar context:
Update: Drat. Indeed the output from localtime follows the ctime() format, which does not include AM/PM. It does return a 24-hour time, but that's not what the OP wanted.
In Section
Seekers of Perl Wisdom
|
|