Getting cities and countries from NSTimeZone

I would like (at least) to get the name of the country for the time zone. This is not provided by any of the possible methods:

  • name,
  • localizedName: locale:
  • Description

I notice that the built-in iPhone clock application has access to this information because it describes London as "London, England."

Thanks.

+3
source share
2 answers

I am sure it is different from the built-in clock. There is a database of cities, each of which has a country and a time zone. And what do you expect from [myGMT city]? Dublin or Casablanca?

0
source

timeZoneWithName:data: , /usr/share/zoneinfo.

, , , , Clock .

0

Source: https://habr.com/ru/post/1724511/


All Articles