Re: Long Int/One's compliment for Time_t
Re: Long Int/One's compliment for Time_t
- Subject: Re: Long Int/One's compliment for Time_t
- From: "Marc S.A. Glasgow" <email@hidden>
- Date: Fri, 17 Jan 2003 03:48:58 -0500
Actually, I was fairly sure that the programming powers that be at
Apple would have resolved this before the move to OS X, since on the
Mac Time_t rolls over at 2040 (I had written the Y2038 paper in 1998
and hadn't revisited the subject much since, thus on OS 8/9 under older
machines), but if you're still getting roll-over then I guess it hasn't
been addressed yet. Changing the integer length (double long int) or
using a different time accounting scheme (literal storage) would be
easy enough to have accomplished at the roll-out of OS X (as part of
the new OS spec), but I can see it causing problems at this stage if
suddenly implemented because of the underpinnings and what uses them
(email programs for time stamping, calendar programs, file creation/mod
dates, etc.). I can see it already: they'll be needing to pull guys
like us out of retirement in 2037 to fix this, while apple boasts they
are unaffected (but in reality have an extra two years to address it,
being able to recruit the programmers from other projects when they
finish with Win2035Sux. updates). <laughs>
That's what they get for not being paying consulting customers &
reading my white papers :P
=-= Marc Glasgow
Emmanuel wrote:
Is this related to the bug that you say?
set x to date "Monday, January 1, 2035 12:00:00 AM"
set x to x + 366 * 86400 (repeated 6 times)
-->
date "Wednesday, January 2, 2036 12:00:00 AM"
date "Friday, January 2, 2037 12:00:00 AM"
date "Sunday, January 3, 2038 12:00:00 AM"
date "Tuesday, January 4, 2039 12:00:00 AM"
date "Thursday, January 5, 2040 12:00:00 AM"
date "Tuesday, November 29, 1904 5:31:44 PM"
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.