Re: Getting the time zone
Re: Getting the time zone
- Subject: Re: Getting the time zone
- From: Chris Page <email@hidden>
- Date: Thu, 13 Dec 2007 19:05:56 -0800
On Dec 13, 2007, at 6:02 PM, Stan Cleveland wrote:
If you actually need the *name* of the time zone, you could create a
lookup
table of time zone names and normalize the result from the above
script (to
eliminate negative numbers and convert to an integer) to use as the
index.
In fact, speaking generally, you really do have to create such a
table, since time zones are ad-hoc and there is no international
standard that defines them or their names. Their definitions (e.g.,
when or if they observe DST) are completely organic and up to local
laws, and the names used for any given time zone can vary quite a lot.
If you look at how the iCal/vCalendar format describes time zones
you'll notice that they provide a record with a complete description
of the time zone and it's DST behavior (if any). To do things right,
you really have to compare descriptions like these to tell whether two
time zones are the same time zone, and if you want to have
standardized names for them, provide a table with the record to match
and the name you wish to display for it -- because the names are ad-
hoc and stored with each record describing the time zone.
--
Chris Page
_______________________________________________
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