How To Get List of Valid Time Zone IDs
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