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

前端 未结 10 1974
南笙
南笙 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:43

    Like others have said, you can find the list by iterating TimeZoneInfo.GetSystemTimeZones() to find the string you want to use. That said, if you only have information on the time difference (like GMT+9 or GMT-10 ) and cannot find your timezone after iterating the Timezones, you might want to see the following url to see which timezone do you need https://msdn.microsoft.com/en-US/library/ms912391(v=winembedded.11).aspx

提交回复
热议问题