scalar localtime misses the time zone that appears in the OP's example. I'd use strftime to get it exact.
$ perl -e 'print scalar localtime, "\n"' Sun Sep 22 13:01:42 2002 $ perl '-MPOSIX qw(strftime)' -e 'print strftime( "%a %b %d %T %Z %Y", + localtime ), "\n"' Sun Sep 22 13:01:48 PDT 2002
Those who know that they are profound strive for clarity. Those who
would like to seem profound to the crowd strive for obscurity.
--Friedrich Nietzsche
In reply to Re: Re: Probably the easiest SOPW today!
by DamnDirtyApe
in thread Printing current date and time
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |