Skip to content

Instantly share code, notes, and snippets.

@sjehutch
Created July 8, 2017 15:13
Show Gist options
  • Save sjehutch/6c615365581b88ec35cff04bbc6f8c74 to your computer and use it in GitHub Desktop.
Save sjehutch/6c615365581b88ec35cff04bbc6f8c74 to your computer and use it in GitHub Desktop.
list country codes sorted
from pytz import country_timezones
timezone_country = {}
for countrycode in country_timezones:
timezones = country_timezones[countrycode]
for timezone in sorted (timezones):
timezone_country[timezone] = countrycode
print (countrycode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment