As the title says, is there any way to get ahold of this information?
Asked
Active
Viewed 2,615 times
2
-
"All the cities in the world" would be a very large list. You would be better querying a database for the city you want. – Joe McGrath Nov 07 '11 at 07:31
-
I'm not the downvoter, but I think you need to specify some more constraints in order to get a good answer. What language and platform? What operating system? etc. – Isak Savo Nov 07 '11 at 07:32
-
possible duplicate of [Web service - current time zone for a city?](http://stackoverflow.com/questions/55901/web-service-current-time-zone-for-a-city) – jscs Nov 07 '11 at 08:40
1 Answers
3
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?.