• 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:59:58 +0100

On 6 Jul 2005, at 00:48, kai wrote:

Now - about that small matter of daylight saving...

A variant on the previous script:


tell application "Automator"
activate
set foo to call method "knownTimeZoneNames" of class "NSTimeZone"
set bar to choose from list foo
set dstCheck to call method "timeZoneWithName:" of class "NSTimeZone" with parameters bar
set theResult to call method "isDaylightSavingTime" of dstCheck
if theResult is 1 then
display dialog (bar as string) & " IS observing daylight saving time."
else
display dialog (bar as string) & " is NOT observing daylight saving time."
end if
end tell



:-)

--
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


References: 
 >Re: easy one: current date in Paris (From: kai <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