Translate Windows timezone to TZID?
I've been thinking about this problem for a while. Anyone have any thoughts? Suppose you have a portable computer running Microsoft Windows (whatever version you dislike least) which you take with you when you travel. When you power it up and you're in a timezone different from the one you last used it in, you use Windows' Adjust Date/Time dialogue to set the correct timezone. Now Windows has bogus names for the zones, like "Dlt"="GMT Daylight Time" "Std"="GMT Standard Time" "Dlt"="Hawaiian Daylight Time" "Std"="Hawaiian Standard Time" which you can read out of the registry. Suppose I want to get the correct name of the time zone (from which maybe I'll generate the correct abbreviation). So for GMT, the proper strings would be "Greenwich Mean Time" for standard time, and there is no daylight time. For Hawaii, I believe that's properly Hawaiian-Aleutian Standard Time; again no daylight observance. Is there a way anyone can think of to map the incorrect Windows text strings to correct text strings algorithmically? (Too bad Windows doesn't have the exemplar city name in its database of time zones.) Dave Cantor -- David A. Cantor Groton, CT 06340-3731 DCantor@shore.net
Hi Dave Our Windows TimesOwn Pro software clock does this in a fashion. TimesOwn Pro can be set to add additional "TimesOwn Zone" registry zones with the correct TZ abbreviations into the registry. Windows can then select these alternative and updated Time Zone rules to manage time from.
From TimesOwn Pro you can set out a group of time zones for your trip and on arrival at each new destination simply select the PC Time Zone from within TimesOwn Pro.
Is that of any interest? Kind regards David Hingston MB ChB MBA Director Chequers Software Ltd Wellington, New Zealand. http://www.cheqsoft.com => MathsOwn - World Class => Break Reminder - Strategic Accuracy Software => Clipboard Express Pro - Time Creation => TimesOwn - World Clock ____________________________________________________________ The information in this email and in any attachment (s) is confidential and may be legally privileged. If you are not the named addressee's) or if you receive this email in error then any distribution, copying or use of this communication or the information in it is strictly prohibited. Please notify the sender immediately by return email and then delete the message from your computer. Thank you for your assistance. ____________________________________________________________ ----- Original Message ----- From: Dave Cantor To: tz@lecserver.nci.nih.gov Sent: Wednesday, June 15, 2005 8:01 AM Subject: Translate Windows timezone to TZID? I've been thinking about this problem for a while. Anyone have any thoughts? Suppose you have a portable computer running Microsoft Windows (whatever version you dislike least) which you take with you when you travel. When you power it up and you're in a timezone different from the one you last used it in, you use Windows' Adjust Date/Time dialogue to set the correct timezone. Now Windows has bogus names for the zones, like "Dlt"="GMT Daylight Time" "Std"="GMT Standard Time" "Dlt"="Hawaiian Daylight Time" "Std"="Hawaiian Standard Time" which you can read out of the registry. Suppose I want to get the correct name of the time zone (from which maybe I'll generate the correct abbreviation). So for GMT, the proper strings would be "Greenwich Mean Time" for standard time, and there is no daylight time. For Hawaii, I believe that's properly Hawaiian-Aleutian Standard Time; again no daylight observance. Is there a way anyone can think of to map the incorrect Windows text strings to correct text strings algorithmically? (Too bad Windows doesn't have the exemplar city name in its database of time zones.) Dave Cantor -- David A. Cantor Groton, CT 06340-3731 DCantor@shore.net
We have *a* mapping of Windows IDs in CLDR. See http://unicode.org/cldr/data/diff/supplemental/supplemental.html#windows___t... While we have tried to make it accurate, it is difficult to get a good match because the Windows IDs encompass what would be many different TZIDs. Mark ----- Original Message ----- From: "Dave Cantor" <dcantor@shore.net> To: <tz@lecserver.nci.nih.gov> Sent: Tuesday, June 14, 2005 13:01 Subject: Translate Windows timezone to TZID?
I've been thinking about this problem for a while. Anyone have any thoughts?
Suppose you have a portable computer running Microsoft Windows (whatever version you dislike least) which you take with you when you travel. When you power it up and you're in a timezone different from the one you last used it in, you use Windows' Adjust Date/Time dialogue to set the correct timezone.
Now Windows has bogus names for the zones, like "Dlt"="GMT Daylight Time" "Std"="GMT Standard Time" "Dlt"="Hawaiian Daylight Time" "Std"="Hawaiian Standard Time" which you can read out of the registry.
Suppose I want to get the correct name of the time zone (from which maybe I'll generate the correct abbreviation). So for GMT, the proper strings would be "Greenwich Mean Time" for standard time, and there is no daylight time. For Hawaii, I believe that's properly Hawaiian-Aleutian Standard Time; again no daylight observance.
Is there a way anyone can think of to map the incorrect Windows text strings to correct text strings algorithmically?
(Too bad Windows doesn't have the exemplar city name in its database of time zones.)
Dave Cantor
-- David A. Cantor Groton, CT 06340-3731 DCantor@shore.net
What are the Windows IDs in the table? When I worked on platform time zone detection issues for Java on Windows, a problem was that Windows didn't have any notion of time zone IDs. So, I used Time Zones registry keys for the mapping support, but I had to ask Microsoft not to localize those registry keys. Thanks, Masayoshi Mark Davis wrote:
We have *a* mapping of Windows IDs in CLDR. See
http://unicode.org/cldr/data/diff/supplemental/supplemental.html#windows___t...
While we have tried to make it accurate, it is difficult to get a good match because the Windows IDs encompass what would be many different TZIDs.
Mark
----- Original Message ----- From: "Dave Cantor" <dcantor@shore.net> To: <tz@lecserver.nci.nih.gov> Sent: Tuesday, June 14, 2005 13:01 Subject: Translate Windows timezone to TZID?
I've been thinking about this problem for a while. Anyone have any thoughts?
Suppose you have a portable computer running Microsoft Windows (whatever version you dislike least) which you take with you when you travel. When you power it up and you're in a timezone different from the one you last used it in, you use Windows' Adjust Date/Time dialogue to set the correct timezone.
Now Windows has bogus names for the zones, like "Dlt"="GMT Daylight Time" "Std"="GMT Standard Time" "Dlt"="Hawaiian Daylight Time" "Std"="Hawaiian Standard Time" which you can read out of the registry.
Suppose I want to get the correct name of the time zone (from which maybe I'll generate the correct abbreviation). So for GMT, the proper strings would be "Greenwich Mean Time" for standard time, and there is no daylight time. For Hawaii, I believe that's properly Hawaiian-Aleutian Standard Time; again no daylight observance.
Is there a way anyone can think of to map the incorrect Windows text strings to correct text strings algorithmically?
(Too bad Windows doesn't have the exemplar city name in its database of time zones.)
Dave Cantor
-- David A. Cantor Groton, CT 06340-3731 DCantor@shore.net
I will have to dig out what API those come from; Windows does not make it at all easy to get a list of the available zones. Mark ----- Original Message ----- From: "Masayoshi Okutsu" <Masayoshi.Okutsu@sun.com> To: "Mark Davis" <mark.davis@jtcsv.com> Cc: <DCantor@shore.net>; <tz@lecserver.nci.nih.gov> Sent: Thursday, June 16, 2005 18:47 Subject: Re: Translate Windows timezone to TZID?
What are the Windows IDs in the table? When I worked on platform time zone detection issues for Java on Windows, a problem was that Windows didn't have any notion of time zone IDs. So, I used Time Zones registry keys for the mapping support, but I had to ask Microsoft not to localize those registry keys.
Thanks, Masayoshi
Mark Davis wrote:
We have *a* mapping of Windows IDs in CLDR. See
http://unicode.org/cldr/data/diff/supplemental/supplemental.html#windows___ tzid
While we have tried to make it accurate, it is difficult to get a good
match
because the Windows IDs encompass what would be many different TZIDs.
Mark
----- Original Message ----- From: "Dave Cantor" <dcantor@shore.net> To: <tz@lecserver.nci.nih.gov> Sent: Tuesday, June 14, 2005 13:01 Subject: Translate Windows timezone to TZID?
I've been thinking about this problem for a while. Anyone have any thoughts?
Suppose you have a portable computer running Microsoft Windows (whatever version you dislike least) which you take with you when you travel. When you power it up and you're in a timezone different from the one you last used it in, you use Windows' Adjust Date/Time dialogue to set the correct timezone.
Now Windows has bogus names for the zones, like "Dlt"="GMT Daylight Time" "Std"="GMT Standard Time" "Dlt"="Hawaiian Daylight Time" "Std"="Hawaiian Standard Time" which you can read out of the registry.
Suppose I want to get the correct name of the time zone (from which maybe I'll generate the correct abbreviation). So for GMT, the proper strings would be "Greenwich Mean Time" for standard time, and there is no daylight time. For Hawaii, I believe that's properly Hawaiian-Aleutian Standard Time; again no daylight observance.
Is there a way anyone can think of to map the incorrect Windows text strings to correct text strings algorithmically?
(Too bad Windows doesn't have the exemplar city name in its database of time zones.)
Dave Cantor
-- David A. Cantor Groton, CT 06340-3731 DCantor@shore.net
participants (4)
-
Dave Cantor -
Mark Davis -
Masayoshi Okutsu -
support@cheqsoft.com