Re: easy one: current date in Paris
Re: easy one: current date in Paris
- Subject: Re: easy one: current date in Paris
- From: Martin Orpen <email@hidden>
- Date: Wed, 6 Jul 2005 08:32:46 +0100
On 5 Jul 2005, at 23:53, has wrote:
BTW, if you've access to Cocoa, I think NSTimeZone may have
sufficient smarts to calculate when DST is active based on a
specific country so check it out as well; nothing beats having
someone else do all the hard work for you. ;)
Too right:
set myZone to "Europe/Paris"
tell application "Automator"
set foo to call method "timeZoneWithName:" of class "NSTimeZone"
with parameter myZone
set bar to call method "secondsFromGMT" of foo
end tell
--> 7200
Did I mention that you can use Automator to make obj-c calls?
--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden