Re: New date bug [Re: Correcting AGE_INFO]
Re: New date bug [Re: Correcting AGE_INFO]
- Subject: Re: New date bug [Re: Correcting AGE_INFO]
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 5 Feb 2010 09:17:52 -0500
On Fri, Feb 5, 2010 at 8:04 AM, Mark J. Reed <email@hidden> wrote:
> AppleScript seems to use the historical calendar rather than
> retrojecting the modern one. That means it must be locale-dependent,
> however,
Apparently not. AppleScript seems to use the earliest date of
Gregorian adoption (Friday, October 5 O.S./15 N.S., 1582),
irrespective of locale settings:
((date "10/15/1582") - (date "10/4/1582"))/days -- 1.0
So if, for example, you're dealing with dates out of English or
American history, AppleScript will get weekdays and intervals wrong
for the 170-year period from October 5, 1582 through September 13,
1752.
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden