[tz] From (ISO3166-1 alpha2 + ISO3166-2) country+region code to timezone?

Paul Eggert eggert at cs.ucla.edu
Sun Nov 29 23:37:13 UTC 2020


On 11/29/20 1:53 PM, Joseph Ernest via tz wrote:
> How is it possible to get the timezone for a specific datetime and 
> a (ISO3166-1 alpha2, ISO3166-2) pair, i.e. a country code + region code ?

Country code + region code won't suffice, since time zone boundaries do 
not always respect region boundaries.

If you start with geolocation instead, you'll have better luck. See:

https://data.iana.org/time-zones/tz-link.html#boundaries



More information about the tz mailing list