my $foo = localtime; print $foo;
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 reply to Re: How to get time in perl?
by trammell
in thread How to get time in perl?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |