• 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: easy one: current date in Paris
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: easy one: current date in Paris
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: easy one: current date in Paris (From: has <email@hidden>)

  • Prev by Date: Re: easy one: current date in Paris
  • Next by Date: Re: easy one: current date in Paris
  • Previous by thread: Re: easy one: current date in Paris
  • Next by thread: Re: easy one: current date in Paris
  • Index(es):
    • Date
    • Thread