in reply to Re^4: Date conversion in perl?
in thread Date conversion in perl?
It's a different failure mode, but it's still failing by returning the date for -1 instead of returning undef.
I imagine that some of the work in this area is done by the underlying C library, so you can expect differences between systems.
I believe that might also be changed in 5.12 to avoid the year 2038 overflow.
Update: Confirmed:
$ /usr/bin/perl -le'print scalar localtime "201003031234"' Wed Dec 31 18:59:59 1969 $ ./perl -le'print scalar localtime "201003031234"' Fri Jul 14 19:20:34 8339
|
|---|