What value should I pass into TimeZoneInfo.FindSystemTimeZoneById(String)?

前端 未结 10 1963
南笙
南笙 2020-12-04 15:22

I want to use the TimeZoneInfo.FindSystemTimeZoneById(String) method, but I don\'t know what values to use as the input?

Where can I get a list of values for i

10条回答
  •  借酒劲吻你
    2020-12-04 15:39

    Have a look at the static method on TimeZoneInfo called TimeZoneInfo.GetSystemTimeZones() method.

    This will return a list of all TimeZoneInfo's on your operating system from the Registry. They are all stored under: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones.

    An example is "GMT Standard Time" for the "Dublin, Edinburgh, Lisbon, London" time zone.

提交回复
热议问题