This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make Time::Local run on perls older than 5.12 again
authorFlorian Ragwitz <rafl@debian.org>
Sun, 2 Jan 2011 15:25:52 +0000 (16:25 +0100)
committerFlorian Ragwitz <rafl@debian.org>
Sun, 2 Jan 2011 15:34:49 +0000 (16:34 +0100)
commit23046b7e6ff1fe67d95bf72477e961d488fd2d27
treecfe8bfe8d489ad4992ce471016042170b62b43f6
parentb99c822f5c5b52c35b7eb52dd8936b00e664b01c
Make Time::Local run on perls older than 5.12 again

With 5.12, this module was made y2038-safe, even on systems with a 32-bit
time_t. Unfortunately, that broke things on older perl versions and blead became
this module's upstream as the y2038-safety couldn't easily be backported.

This change also doesn't attempt to backport y2038 support. It merely restores
the old behaviour including the y2038 limitations on older versions of perl on
platforms without a 64-bit time_t.

With this, we can at least move Time::Locale's upstream back to CPAN. Making it
y2038-safe for old perls on 32-bit time_t platforms probably shouldn't be a
priority anyway. There's Time::y2038, which does everything this module does,
and then some, while being y2038-safe.

At some point, this module should probably be deprecated.
Porting/Maintainers.pl
ext/Time-Local/lib/Time/Local.pm
ext/Time-Local/t/Local.t
pod/perldelta.pod