• 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
How To Get List of Valid Time Zone IDs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How To Get List of Valid Time Zone IDs


  • Subject: How To Get List of Valid Time Zone IDs
  • From: Jim Underwood <email@hidden>
  • Date: Tue, 5 Dec 2017 23:47:01 +0000
  • Thread-topic: How To Get List of Valid Time Zone IDs

Thanks for this handy script, Shane.
I started a new topic to help others find it.

Best Regards,

Jim Underwood
aka JMichaelTX


From: Shane Stanley
<email@hidden<mailto:email@hidden>>
Date: Tuesday, December 5, 2017 at 12:32 AM
To: "ASUL (AppleScript)"
<email@hidden<mailto:email@hidden>>
Subject: Re: CalendarLib EC

"Japanese Standard Time" is not a valid time zone name in this context -- it
really requires a zone ID. Try "Asia/Tokyo".

You can find out the valid entries like this:

use AppleScript version "2.4" -- Yosemite (10.10) or later
use framework "Foundation"
use scripting additions

current application's NSTimeZone's knownTimeZoneNames() as list

--
Shane Stanley <email@hidden<mailto:email@hidden>>
<www.macosxautomation.com/applescript/apps/<http://www.macosxautomation.com/applescript/apps/>>,
 <latenightsw.com<http://latenightsw.com>>
 _______________________________________________
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

  • Prev by Date: Re: CalendarLib EC
  • Next by Date: TextEdit, GUI scripting ?
  • Previous by thread: Re: CalendarLib EC
  • Next by thread: TextEdit, GUI scripting ?
  • Index(es):
    • Date
    • Thread