You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Paul <yd...@yahoo.com> on 2000/05/24 23:36:36 UTC
10 digit timestamp
I saw a post recently (possibly elsewhere, if so I'm sorry for the
spam) stating that on Sep 8 next year timestamps (the number of seconds
since 00:00:01 1/1/70, the UNIX epoch) will hit 10 digits for the first
time. The comment was that it might be something like the Y2K problem.
I tried a few quick tests, and got this:
perl -e 'print scalar localtime(2147483647),"\n",
scalar localtime(2147483648),"\n";'
Mon Jan 18 21:14:07 2038
Fri Dec 13 14:45:52 1901
It's a signed 4-byte integer.
Not an issue of horrendous urgency yet,
but maybe we should think about it before 2037? =o)
Paul
====
A plaque on Eistein's wall (in paraphrase) --
"Not everything that can be counted counts;
Not everything that counts can be counted."
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
Re: 10 digit timestamp
Posted by Vivek Khera <kh...@kciLink.com>.
>>>>> "P" == Paul <yd...@yahoo.com> writes:
P> It's a signed 4-byte integer.
P> Not an issue of horrendous urgency yet,
P> but maybe we should think about it before 2037? =o)
Errr... Are you new to Unix? This is a very well known issue... and
really has nothing to do with mod_perl.
The only thing this will really affect is people who are silly enough
to write dates to persistent storage using time_t values.