Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 301 Bytes

File metadata and controls

5 lines (3 loc) · 301 Bytes

Given a timezone information from the system.

Convert the localized name into a country code conforming to ISO 3166 2-character country code.

It could be used in cases where a network request is not desirable. Then, the country of the current user could be obtained from the iOS time zone settings.