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: John W Baxter <email@hidden>
- Date: Sat, 18 Jan 2003 00:01:19 -0800
- Envelope-to: email@hidden
At 3:48 -0500 1/17/2003, Marc S.A. Glasgow wrote:
>
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.
The preferred time routines in the Mac toolbox had become 64 bit signed by
1991, and I think before. I don't feel like going down to the basement
book collection to look. Windowing was used in dealing with 2-digit years,
with the window moving as a machine moved from 1989 to 1990 and (at that
time) moving again when the machine moved past 2015. Before 1990, 05 meant
1905; after it meant 2005. At the 2015 (?) jump, 95 ceased to mean 1995
and became 2095. I'm sure things will be different by the time we get
there.
[Despite which, I wound up with my collection of January 2000 email
messages from Outlook Express dated in January 1900 in the Filemaker
database I archived them into. Fortunately, separating my year 2000 email
messages from my year 1900 email messages was easy [ ;-) ], and a simple
replacement in Filemaker fixed the former.] Imports for later months
worked fine: I reluctantly set my short date format to 4 digit years.
That was an issue with the way the message filing AppleScript script dealt
with dates, not with the underlying implementation.
Exactly why the addition demonstrated earlier in this thread is stuck in 32
bits is something of a mystery, since Apple has been on top of the problem
for a long time. I think one can say "oversight."
(On the other hand, try setting a Mac OS 8.6 machine to a date after
2019...there's windowing going on there too. I haven't tried it in Mac OS
X...Unix really doesn't like big time jumps...and I don't remember whether
Mac OS 9 fixed the issue--which was only an amusement anyhow, since clearly
well before 2019 the problem will be solved or Apple will be gone for other
reasons...or both.)
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
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.