Missing Microsoft time zones

我只是一个虾纸丫 提交于 2020-01-05 03:57:06

问题


I'm looking at using the Microsoft time zones (by utilising the System.TimeZoneInfo class in C#) to convert stored UTC dates to local timezone dates and vice versa.

However, I've noticed that this isn't a comprehensive list. For example, it currently only has one timezone defined for Greenland (Greenland Standard Time (GMT-03:00) Greenland), where wikipedia and timeanddate both show there are 2 major time zones in use (eastern and western) as well as 2 lesser used ones.

Is there a comprehensive list anywhere of missing timezones?


回答1:


The conversion data between Windows time zone IDs and IANA time zone IDs is available via CLDR.

Looking at the data (and at the raw IANA data in Github) it looks like the IANA time zones in question are:

  • "America/Godthab" (West Greenland)
  • "America/Scoresbysund" (East Greenland)

Those have corresponding Windows time zone IDs of:

  • "Greenland Standard Time" (West Greenland)
  • "Azores Standard Time" (um, not really East Greenland - read on)

Obviously the Azores and East Greenland are quite a long way apart - but it turns out they follow the same time zone rules, which is presumably why Microsoft has lumped them under a single time zone.

Basically, if you want to find the time in East Greenland for "America/Scoresbysund", then "Azores Standard Time" is your closest bet.



来源:https://stackoverflow.com/questions/49600085/missing-microsoft-time-zones

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!