strat has asked for the wisdom of the Perl Monks concerning the following question:
I am just writing a module that deals with dates and german holidays, and since this module should run on 32-bit boxes too, I can't use the builtin function localtime and the function timelocal from Time::Local because they don't like years > 2038.
For localtime, I can use the localtime from Time::Piece instead which seems to do a good job, but I still need the other way round (the timelocal-way). I've searched CPAN and my local modules, but haven't found anything. Do you know a CPAN-Module that converts a date into epochseconds and doesn't stop at 2038 or before 1970 at 32-bit-systems? Or do I have to code it by myself?
Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Converting dates later than 2038 into epochseconds
by mojotoad (Monsignor) on Jan 09, 2003 at 00:58 UTC | |
|
Re: Converting dates later than 2038 into epochseconds
by Enlil (Parson) on Jan 09, 2003 at 01:05 UTC | |
|
Re: Converting dates later than 2038 into epochseconds
by krujos (Curate) on Jan 09, 2003 at 00:39 UTC |