Where is the iPhone's Date & Time getting its time zone list

后端 未结 3 994
滥情空心
滥情空心 2020-12-17 05:20

I can get a list of time zones with [NSTimeZone knownTimeZoneNames], but that only gives the time zone IDs which include one or two cities in each time zone.

3条回答
  •  清歌不尽
    2020-12-17 05:53

    What you are asking for is commonly referred to as the Olson database. See for instance this Wikipedia page. The public domain Zone.tab file contains all of the timezones. You can find a zones.tab file in the zoneinfo directory of the libical distribution.

提交回复
热议问题