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: Sun, 26 May 2013 14:59:48 +0100
Shane Stanley wrote on Thu, 23 May 2013 11:54:52 +1000:
>On 23/05/2013, at 10:14 AM, Nigel Garvey
><email@hidden> wrote:
>
>> Interesting.
>
>This might give you a clue as to what's going on (date stuff makes my
head
>hurt). Open a Cocoa-AppleScript window in AppleScript Editor and run
this:
Thanks. I don't know any Cocoa-AppleScript, so I'm still clueless as to
why it's happening. ;) But it still seems to amount to a bug.
Another thing I've noticed with AS dates in ML is that they now
automatically follow the clocks going forward — at least with GMT -> BST
in the Europe/London time zone:
date "Sunday 31 March 2013 01:00:00"
--> Compiles as date "Sunday 31 March 2013 02:00:00" with time and hours properties to match.
This may occasionally be useful if one's only interested in one's own
time zone, but not for general use as far as I can see. However, it's
also tantalisingly incomplete:
set midnight to date "Sunday 31 March 2013 00:00:00" -- Midnight GMT.
copy midnight to oneAM
set oneAM's hours to 1
oneAM --> date "Sunday 31 March 2013 02:00:00" -- 02:00:00 BST
oneAM's hours --> 7200
oneAM - midnight --> 7200
-- But:
set midnight to date "Sunday 31 March 2013 00:00:00" -- Midnight GMT.
set oneAM to midnight + hours
--> date "Sunday 31 March 2013 02:00:00" -- 02:00:00 BST
oneAM's time --> 7200
oneAM - midnight --> 3600 -- !!!
Apparently a "watch this space" situation. :) Nothing similar so far
when the clocks go back.
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