Son of Y2.401K
Son of Y2.401K
- Subject: Son of Y2.401K
- From: Nigel Garvey <email@hidden>
- Date: Wed, 13 Feb 2002 03:19:55 +0000
Back in the days of AS 1.3.7 (Mac OS 8.6), shortly before the turn of the
millennium, I was the proud discoverer of the Y2.401K bug, whereby it was
impossible to compile any date in the year 2401. (AppleScript would
complain that the date and time were invalid.) John Delacour did some
investigating by adding his way in from 31st December 2400 and discovered
that the first two days of January 2401 were both the 2nd. Furthermore,
if setting the day, month, or year of any date should have resulted in a
2401 date, the result was always two days earlier than it should have
been. Addition, however, produced the correct results from *Tuesday* 2nd
January. The bug was cured in the next AppleScript release.
It now gives me great pleasure to announce the discovery of the AS 1.6
equivalent, which I have provisionally called the J101 bug. It affects
1st January in the 101st year of every Julian cycle that I've tested -
ie. 1301, 1701, 2101, etc. AppleScript again complains of an invalid date
and time if you try to compile 1st January in those years. Adding a day
to 31st December in the preceding years results in 32nd December, as does
any other date modification that should produce 1st January in an
affected year. It's also possible to compile 32nd December of the
previous year directly. I haven't tried *all* the other dates in the J101
years, but they seem to be OK.
NG
_______________________________________________
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.