in reply to How to get time in perl?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to get time in perl?
by GrandFather (Saint) on Jul 07, 2005 at 01:47 UTC | |
by Random_Walk (Prior) on Jul 07, 2005 at 17:13 UTC | |
by GrandFather (Saint) on Jul 07, 2005 at 22:21 UTC |