Re: The latest AS date and AS Editor bugs
Re: The latest AS date and AS Editor bugs
- Subject: Re: The latest AS date and AS Editor bugs
- From: Nigel Garvey <email@hidden>
- Date: Thu, 23 May 2013 01:14:14 +0100
Shane Stanley wrote on Thu, 23 May 2013 09:06:59 +1000:
>On 23/05/2013, at 12:37 AM, Nigel Garvey
><email@hidden> wrote:
>
>> but
>> there's now a 75-second discrepancy between date texts and other date
>> properties which affects all dates up to and including 1 December 1847
>> 00:01:14. eg.:
>>
>> -- (Rearrange this specifier to compile on your own machine.)
>> tell date "Thursday 31 December 1846 23:59:59" to ¬
>> return its {weekday, day, month, year, hours, minutes, seconds,
date
>>string}
>> --> {Friday, 1, January, 1847, 0, 1, 14, "Thursday 31 December 1846"}
>
>I presume this is locale-dependent. We introduced GMT at a different
date
>here, and I get:
>
>tell date "Thursday, 31 December 1846 11:59:59 PM" to ¬
> return its {weekday, day, month, year, hours, minutes, seconds, date
>string}
>--> {Friday, 1, January, 1847, 0, 20, 7, "Thursday, 31 December 1846"}
Could be. I get your result if I set my computer's time zone to Western
Australia, quit AppleScript Editor, then open it, paste in the script,
and run it again. I get Chris's second result if I do the same with an
American mid-west time zone. There may be something else going on too.
On one test with an intermediate time zone, the pasted-in date specifier
recompiled to a different time. And I didn't need to quit AppleScript
Editor when I switched back to my own time zone. Interesting.
NG
_______________________________________________
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