How to get a list of all cities in the world and their correponding time zone information including DST [closed]

StackOverflow https://stackoverflow.com/questions/8033732

  •  23-02-2021
  •  | 
  •  

Frage

As the title says, is there any way to get ahold of this information?

War es hilfreich?

Lösung

In .NET, you can use the System.TimeZoneInfo.GetSystemTimeZones() method to get a list of all of the timezones in the world, including DST information. This doesn't tell you which cities are in which timezones, however. For that you would need some sort of third-party database.

You should also take a look at this question: Web service - current time zone for a city?.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top