in reply to Re^2: Date conversion in perl?
in thread Date conversion in perl?
$ perl -le 'print scalar(localtime(20100302165019));' Mon Mar 22 05:03:39 638923 ^^ ^^^^^^
(with a 64-bit Perl)
The string '20100302165019' doesn't represent seconds since "the epoch", which is what localtime() would expect.
|
|---|