Olson Time Zone Database to Standard Windows Time Zone v0.1

Hi All,
Recently, I have been playing around with some code from the Olson Time Zone Database and OpenID. The biggest problem I have found is that the Olson Time Zone Database doesn’t provide a Windows Standard Format Conversion in their database – so I set about doing this myself. I am by no means guaranteeing that this is 100% perfect – hence the reason I am releasing it on the web for all to assist in improving it. Basically, it converts the Olson Time Zone Database to the Windows Standard Format Time Zone for easy use with OpenID and websites. The *.xlsx and *.xls are available by clicking on each.
Olson-to-Windows.xlsx – Here (73KB)
Olson-to-Windows.xls – Here (192KB)
It’s taken a bit of Time (*pardon the pun*) – but I have come up with a pretty complete offering that I am publishing under an ISC Licence.
The detail of such a license are available in the file and below. Basically, your free to do with it as you want – although I would hope that any modifications, improvements and the like you make – you can send back to me so I can update this post for the benefit of everyone else.
Copyright (c) 2008-2078(s), Tim Davis, tim (at) timdavis.com.au – ISC Licence
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
7 Comments so far
Leave a reply
I think I found a few additions when parsing data from geoname.org.
Europe/Sarajevo,Central European Standard Time
Europe/Guernsey,GMT Standard Time
Europe/Zagreb,Central European Standard Time
Europe/Isle_of_Man,GMT Standard Time
Asia/Calcutta,India Standard Time
Europe/Jersey,GMT Standard Time
Europe/Podgorica,Central European Standard Time
Europe/Skopje,Central European Standard Time
Europe/Ljubljana,Central European Standard Time
Arctic/Longyearbyen,Central European Standard Time
Europe/Bratislava,Central European Standard Time
Europe/San_Marino,Central European Standard Time
America/Shiprock,Mountain Standard Time
Asia/Saigon,SE Asia Standard Time
Thanks for the data!
Dan
There are some errors on the combined excel sheet with the ETC time zones. All the Etc/GMT signs are opposite what they should be as shown in the display_name column
Chris, sign reversal is not an error, but an artifact of the way the Olson timezone database names these timezones in accordance with the POSIX standard. The following comment is in the db:
# We use POSIX-style signs in the Zone names and the output abbreviations,
# even though this is the opposite of what many people expect.
# POSIX has positive signs west of Greenwich, but many people expect
# positive signs east of Greenwich. For example, TZ=’Etc/GMT+4′ uses
# the abbreviation “GMT+4″ and corresponds to 4 hours behind UTC
# (i.e. west of Greenwich) even though many people would expect it to
# mean 4 hours ahead of UTC (i.e. east of Greenwich).
This is awesome, thanks a lot! :-)
Would be nice to include those back-mappings in the table:
http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/windows_tzid.html
A good piece of work. Saves me a chunk of Time! All I have to do now is re-jig in javascript.
Not your fault, but I find it curious that Beijing is shown in Olson only as a comment attached to Shanghai. I’d have thought the capital of the world’s largest (?) and most populous country would merit its own entry.
In addition, Beijing is variously shown as CCT (China Coastal Time) rather than CST (China Standard Time). Same time throughout China.
PS you have CAT down as South Africa Standard Time when it should be Central Africa Time.