How to get timezone from properties in CultureInfo

后端 未结 1 1833
甜味超标
甜味超标 2021-02-08 02:37

I have a string, which contains a timestamp (yyyy-mm-dd hh:mm:ss). I can create a CultureInfo object based on other information I get. Therefo

1条回答
  •  遇见更好的自我
    2021-02-08 03:26

    Short answer: No

    Long Answer: This is a 1 to many relationship between culture and timezone. For example: en-US - English, American contains 6 timezones... so how would you get from en-US to Eastern Daylight time? ... and how do you get the daylight savings time offsets?

    It's a confusing cultural conundrum (wow, try saying that 5 times fast) that is not easily solvable with the CLR.

    0 讨论(0)
提交回复
热议问题