Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如标题所说,有没有办法获得这些信息?
在 .NET 中,您可以使用该System.TimeZoneInfo.GetSystemTimeZones()方法获取世界上所有时区的列表,包括 DST 信息。但是,这并不能告诉您哪些城市位于哪些时区。为此,您需要某种第三方数据库。
System.TimeZoneInfo.GetSystemTimeZones()
您还应该看看这个问题:Web 服务 - 一个城市的当前时区?.