in reply to Re: How to get time in perl?
in thread How to get time in perl?
Just to expand on holli's excellent suggestion ...
There are many more formatting options, have a look at the strftime docsperl -MPOSIX -le'print strftime "%x %X", localtime time' 07/06/05 17:05:49
perl -MPOSIX -le'print strftime "%r %x", localtime time' 06:47:16 PM 07/07/05
Cheers,
R.
|
|---|