Is there a publicly available mapping from tz database (aka zoneinfo database, aka Olson database) IDs to city and country? For example:
"Pacific/Auckland" => "Auckland, New Zealand"
"Europe/Copenhagen" => "Copenhagen, Denmark"
"Europe/Paris" => "Paris, France"
"Europe/Moscow" => "Moscow, Russia"
"Asia/Tokyo" => "Tokyo, Japan"
"Asia/Baghdad" => "Baghdad, Iraq"
"Africa/Cairo" => "Cairo, Egypt"
... and so on.
Ideally, the mapping would:
"Europe/Paris"
maps to "Paris, France"
in English, "Paris, Frankrike"
in Swedish and "パリ、フランス"
in Japanese."Australia/Sydney"
The built-in World Clock application on the iPhone achieves this. The timezone APIs on iOS rely on the tz database, but when selecting a timezone for a new world clock users can choose from "Canberra, Australia", "Sydney, Australia", "Baghdad, Iraq", "Paris, France", etc. The underlying NSTimeZone
API that the World Clock app is likely using does not expose this information, therefore the data must be provided in the app, not in the underlying OS.
Does anyone know where this mapping can be found?
This code has a map of country names to timezones...