MLUG: Re: [MLUG] 2038 Rollover - Was: Unix Epoch Time
Re: [MLUG] 2038 Rollover - Was: Unix Epoch Time
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On Thu, 8 Jan 2004, Mike Miller wrote:

> On Thu, 8 Jan 2004, Russell Horn wrote:
> 
> > You can even see if your computer is affected with this bit of perl.
> 
> OK.  I ran that code (below) and this is what I got back:
> 
> Tue Jan 19 03:14:01 2038
> Tue Jan 19 03:14:02 2038
> Tue Jan 19 03:14:03 2038
> Tue Jan 19 03:14:04 2038
> Tue Jan 19 03:14:05 2038
> Tue Jan 19 03:14:06 2038
> Tue Jan 19 03:14:07 2038
> Tue Jan 19 03:14:07 2038
> Tue Jan 19 03:14:07 2038
> Tue Jan 19 03:14:07 2038
> 
> So does that mean I am affected or what?

Well, looking at the code you can see that you're getting a wrong 
answer in that you're stuck at 03:14:07 for ever. :-)  For what it's 
worth, Mac OS X 10.3 (which is Darwin underneath) gives the same 
answer.  In a couple of years, Mac OS will be written for 64-bitness 
throughout, but I'm not sure whether they can "fix" this at that 
time if POSIX requires a 32-bit integer for seconds in the epoch.  
Anybody know better?

jking

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members