The y2038 implementation for perl ==============================
============================================= This is an
implementation of POSIX time.h which solves the year 2038 bug on
systems where time_t is only 32 bits. It is implemented in bog-
standard ANSI C. The latest version can be found at It makes use
of the system's native 32 bit functions to perform time zone and
daylight savings time calculations and thus does *not* need to
ship its own time zone table. time64.h currently implements
three public functions, localtime64_r(), gmtime64_r() and
timegm64(). They are implementations of localtime_r(),
gmtime_r() and timegm64(). To install, simply copy time64.c and
time64.h into your project and make use of the functions. To
test, run "make test". You must have Perl, prove (which comes
with a recent version of the Test::Harness Perl module) and
bzdiff installed to run the full test suite. It will do a number
of unit tests, plus test against a large table of known good
values in different time zones. Limi