• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Son of Y2.401K
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Son of Y2.401K


  • Subject: Re: Son of Y2.401K
  • From: Nigel Garvey <email@hidden>
  • Date: Thu, 14 Feb 2002 18:44:30 +0000

Chris Espinosa wrote on Wed, 13 Feb 2002 10:27:23 -0800:

>On Tuesday, February 12, 2002, at 08:57 PM, Nigel Garvey
><email@hidden> wrote:
>
>> 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.
>
>These are problems in the Operating System's DateToString() and
>StringToDate() utilities that AppleScript uses, and not something caused
>by (or necessarily fixable by) AppleScript itself. (The same was true
>for the Y2.401K bug -- we made no changes, but the OS did).

Thanks for that insight, Chris, and for your attention. I was in a "Hey
wow!" mood rather than a "Dear sir..." one when I found the bug, which is
why I mentioned it on the list rather than submitting a bug report
through "normal channels". (Another reason was that everything on the
Apple Web site nowadays seems to require opening an "account", with
passwords, catch questions, contact addresses, etc. I really can't be
arsed with all that.)

>I've reported this curious behavior to the team responsible for the
>Date & Time Utilities as bug 2860198.

Thanks. Hey wow! What was the number of that bug where you can't subtract
one date from another if they're both before 1904? ;-)

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.

  • Prev by Date: Re: "display dialog" time out?
  • Next by Date: Re: monthNumber (was: Create a folder with today's date...)
  • Previous by thread: Re: Son of Y2.401K
  • Next by thread: Re: Son of Y2.401K
  • Index(es):
    • Date
    • Thread