evalEmpire / perl5i

A single module to fix as much of Perl 5 as possible in one go
http://search.cpan.org/perldoc?perl5i
Other
156 stars 42 forks source link

gmtime() and localtime() crap out around y5872869 #30

Closed schwern closed 14 years ago

schwern commented 15 years ago

And they don't warn!

$ time perl -wle 'use perl5i; print scalar gmtime 2**48-2**46-2**45+2**44-2**43+2**42-2**41-2**40' Mon Jan 3 06:09:04 -5868930

$ time perl -wle 'use perl5i; print scalar gmtime 2**48-2**46-2**45+2**44-2**43+2**42-2**41-2**40-2**39' Sat Dec 28 17:50:56 5872869

schwern commented 14 years ago

This appears to have been fixed by Time::y2038.