You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 34KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551
  1. '''
  2. datetime.tzinfo timezone definitions generated from the
  3. Olson timezone database:
  4. ftp://elsie.nci.nih.gov/pub/tz*.tar.gz
  5. See the datetime section of the Python Library Reference for information
  6. on how to use these modules.
  7. '''
  8. import sys
  9. import datetime
  10. import os.path
  11. from pytz.exceptions import AmbiguousTimeError
  12. from pytz.exceptions import InvalidTimeError
  13. from pytz.exceptions import NonExistentTimeError
  14. from pytz.exceptions import UnknownTimeZoneError
  15. from pytz.lazy import LazyDict, LazyList, LazySet # noqa
  16. from pytz.tzinfo import unpickler, BaseTzInfo
  17. from pytz.tzfile import build_tzinfo
  18. # The IANA (nee Olson) database is updated several times a year.
  19. OLSON_VERSION = '2019c'
  20. VERSION = '2019.3' # pip compatible version number.
  21. __version__ = VERSION
  22. OLSEN_VERSION = OLSON_VERSION # Old releases had this misspelling
  23. __all__ = [
  24. 'timezone', 'utc', 'country_timezones', 'country_names',
  25. 'AmbiguousTimeError', 'InvalidTimeError',
  26. 'NonExistentTimeError', 'UnknownTimeZoneError',
  27. 'all_timezones', 'all_timezones_set',
  28. 'common_timezones', 'common_timezones_set',
  29. 'BaseTzInfo',
  30. ]
  31. if sys.version_info[0] > 2: # Python 3.x
  32. # Python 3.x doesn't have unicode(), making writing code
  33. # for Python 2.3 and Python 3.x a pain.
  34. unicode = str
  35. def ascii(s):
  36. r"""
  37. >>> ascii('Hello')
  38. 'Hello'
  39. >>> ascii('\N{TRADE MARK SIGN}') #doctest: +IGNORE_EXCEPTION_DETAIL
  40. Traceback (most recent call last):
  41. ...
  42. UnicodeEncodeError: ...
  43. """
  44. if type(s) == bytes:
  45. s = s.decode('ASCII')
  46. else:
  47. s.encode('ASCII') # Raise an exception if not ASCII
  48. return s # But the string - not a byte string.
  49. else: # Python 2.x
  50. def ascii(s):
  51. r"""
  52. >>> ascii('Hello')
  53. 'Hello'
  54. >>> ascii(u'Hello')
  55. 'Hello'
  56. >>> ascii(u'\N{TRADE MARK SIGN}') #doctest: +IGNORE_EXCEPTION_DETAIL
  57. Traceback (most recent call last):
  58. ...
  59. UnicodeEncodeError: ...
  60. """
  61. return s.encode('ASCII')
  62. def open_resource(name):
  63. """Open a resource from the zoneinfo subdir for reading.
  64. Uses the pkg_resources module if available and no standard file
  65. found at the calculated location.
  66. It is possible to specify different location for zoneinfo
  67. subdir by using the PYTZ_TZDATADIR environment variable.
  68. """
  69. name_parts = name.lstrip('/').split('/')
  70. for part in name_parts:
  71. if part == os.path.pardir or os.path.sep in part:
  72. raise ValueError('Bad path segment: %r' % part)
  73. zoneinfo_dir = os.environ.get('PYTZ_TZDATADIR', None)
  74. if zoneinfo_dir is not None:
  75. filename = os.path.join(zoneinfo_dir, *name_parts)
  76. else:
  77. filename = os.path.join(os.path.dirname(__file__),
  78. 'zoneinfo', *name_parts)
  79. if not os.path.exists(filename):
  80. # http://bugs.launchpad.net/bugs/383171 - we avoid using this
  81. # unless absolutely necessary to help when a broken version of
  82. # pkg_resources is installed.
  83. try:
  84. from pkg_resources import resource_stream
  85. except ImportError:
  86. resource_stream = None
  87. if resource_stream is not None:
  88. return resource_stream(__name__, 'zoneinfo/' + name)
  89. return open(filename, 'rb')
  90. def resource_exists(name):
  91. """Return true if the given resource exists"""
  92. try:
  93. open_resource(name).close()
  94. return True
  95. except IOError:
  96. return False
  97. _tzinfo_cache = {}
  98. def timezone(zone):
  99. r''' Return a datetime.tzinfo implementation for the given timezone
  100. >>> from datetime import datetime, timedelta
  101. >>> utc = timezone('UTC')
  102. >>> eastern = timezone('US/Eastern')
  103. >>> eastern.zone
  104. 'US/Eastern'
  105. >>> timezone(unicode('US/Eastern')) is eastern
  106. True
  107. >>> utc_dt = datetime(2002, 10, 27, 6, 0, 0, tzinfo=utc)
  108. >>> loc_dt = utc_dt.astimezone(eastern)
  109. >>> fmt = '%Y-%m-%d %H:%M:%S %Z (%z)'
  110. >>> loc_dt.strftime(fmt)
  111. '2002-10-27 01:00:00 EST (-0500)'
  112. >>> (loc_dt - timedelta(minutes=10)).strftime(fmt)
  113. '2002-10-27 00:50:00 EST (-0500)'
  114. >>> eastern.normalize(loc_dt - timedelta(minutes=10)).strftime(fmt)
  115. '2002-10-27 01:50:00 EDT (-0400)'
  116. >>> (loc_dt + timedelta(minutes=10)).strftime(fmt)
  117. '2002-10-27 01:10:00 EST (-0500)'
  118. Raises UnknownTimeZoneError if passed an unknown zone.
  119. >>> try:
  120. ... timezone('Asia/Shangri-La')
  121. ... except UnknownTimeZoneError:
  122. ... print('Unknown')
  123. Unknown
  124. >>> try:
  125. ... timezone(unicode('\N{TRADE MARK SIGN}'))
  126. ... except UnknownTimeZoneError:
  127. ... print('Unknown')
  128. Unknown
  129. '''
  130. if zone is None:
  131. raise UnknownTimeZoneError(None)
  132. if zone.upper() == 'UTC':
  133. return utc
  134. try:
  135. zone = ascii(zone)
  136. except UnicodeEncodeError:
  137. # All valid timezones are ASCII
  138. raise UnknownTimeZoneError(zone)
  139. zone = _case_insensitive_zone_lookup(_unmunge_zone(zone))
  140. if zone not in _tzinfo_cache:
  141. if zone in all_timezones_set: # noqa
  142. fp = open_resource(zone)
  143. try:
  144. _tzinfo_cache[zone] = build_tzinfo(zone, fp)
  145. finally:
  146. fp.close()
  147. else:
  148. raise UnknownTimeZoneError(zone)
  149. return _tzinfo_cache[zone]
  150. def _unmunge_zone(zone):
  151. """Undo the time zone name munging done by older versions of pytz."""
  152. return zone.replace('_plus_', '+').replace('_minus_', '-')
  153. _all_timezones_lower_to_standard = None
  154. def _case_insensitive_zone_lookup(zone):
  155. """case-insensitively matching timezone, else return zone unchanged"""
  156. global _all_timezones_lower_to_standard
  157. if _all_timezones_lower_to_standard is None:
  158. _all_timezones_lower_to_standard = dict((tz.lower(), tz) for tz in all_timezones) # noqa
  159. return _all_timezones_lower_to_standard.get(zone.lower()) or zone # noqa
  160. ZERO = datetime.timedelta(0)
  161. HOUR = datetime.timedelta(hours=1)
  162. class UTC(BaseTzInfo):
  163. """UTC
  164. Optimized UTC implementation. It unpickles using the single module global
  165. instance defined beneath this class declaration.
  166. """
  167. zone = "UTC"
  168. _utcoffset = ZERO
  169. _dst = ZERO
  170. _tzname = zone
  171. def fromutc(self, dt):
  172. if dt.tzinfo is None:
  173. return self.localize(dt)
  174. return super(utc.__class__, self).fromutc(dt)
  175. def utcoffset(self, dt):
  176. return ZERO
  177. def tzname(self, dt):
  178. return "UTC"
  179. def dst(self, dt):
  180. return ZERO
  181. def __reduce__(self):
  182. return _UTC, ()
  183. def localize(self, dt, is_dst=False):
  184. '''Convert naive time to local time'''
  185. if dt.tzinfo is not None:
  186. raise ValueError('Not naive datetime (tzinfo is already set)')
  187. return dt.replace(tzinfo=self)
  188. def normalize(self, dt, is_dst=False):
  189. '''Correct the timezone information on the given datetime'''
  190. if dt.tzinfo is self:
  191. return dt
  192. if dt.tzinfo is None:
  193. raise ValueError('Naive time - no tzinfo set')
  194. return dt.astimezone(self)
  195. def __repr__(self):
  196. return "<UTC>"
  197. def __str__(self):
  198. return "UTC"
  199. UTC = utc = UTC() # UTC is a singleton
  200. def _UTC():
  201. """Factory function for utc unpickling.
  202. Makes sure that unpickling a utc instance always returns the same
  203. module global.
  204. These examples belong in the UTC class above, but it is obscured; or in
  205. the README.txt, but we are not depending on Python 2.4 so integrating
  206. the README.txt examples with the unit tests is not trivial.
  207. >>> import datetime, pickle
  208. >>> dt = datetime.datetime(2005, 3, 1, 14, 13, 21, tzinfo=utc)
  209. >>> naive = dt.replace(tzinfo=None)
  210. >>> p = pickle.dumps(dt, 1)
  211. >>> naive_p = pickle.dumps(naive, 1)
  212. >>> len(p) - len(naive_p)
  213. 17
  214. >>> new = pickle.loads(p)
  215. >>> new == dt
  216. True
  217. >>> new is dt
  218. False
  219. >>> new.tzinfo is dt.tzinfo
  220. True
  221. >>> utc is UTC is timezone('UTC')
  222. True
  223. >>> utc is timezone('GMT')
  224. False
  225. """
  226. return utc
  227. _UTC.__safe_for_unpickling__ = True
  228. def _p(*args):
  229. """Factory function for unpickling pytz tzinfo instances.
  230. Just a wrapper around tzinfo.unpickler to save a few bytes in each pickle
  231. by shortening the path.
  232. """
  233. return unpickler(*args)
  234. _p.__safe_for_unpickling__ = True
  235. class _CountryTimezoneDict(LazyDict):
  236. """Map ISO 3166 country code to a list of timezone names commonly used
  237. in that country.
  238. iso3166_code is the two letter code used to identify the country.
  239. >>> def print_list(list_of_strings):
  240. ... 'We use a helper so doctests work under Python 2.3 -> 3.x'
  241. ... for s in list_of_strings:
  242. ... print(s)
  243. >>> print_list(country_timezones['nz'])
  244. Pacific/Auckland
  245. Pacific/Chatham
  246. >>> print_list(country_timezones['ch'])
  247. Europe/Zurich
  248. >>> print_list(country_timezones['CH'])
  249. Europe/Zurich
  250. >>> print_list(country_timezones[unicode('ch')])
  251. Europe/Zurich
  252. >>> print_list(country_timezones['XXX'])
  253. Traceback (most recent call last):
  254. ...
  255. KeyError: 'XXX'
  256. Previously, this information was exposed as a function rather than a
  257. dictionary. This is still supported::
  258. >>> print_list(country_timezones('nz'))
  259. Pacific/Auckland
  260. Pacific/Chatham
  261. """
  262. def __call__(self, iso3166_code):
  263. """Backwards compatibility."""
  264. return self[iso3166_code]
  265. def _fill(self):
  266. data = {}
  267. zone_tab = open_resource('zone.tab')
  268. try:
  269. for line in zone_tab:
  270. line = line.decode('UTF-8')
  271. if line.startswith('#'):
  272. continue
  273. code, coordinates, zone = line.split(None, 4)[:3]
  274. if zone not in all_timezones_set: # noqa
  275. continue
  276. try:
  277. data[code].append(zone)
  278. except KeyError:
  279. data[code] = [zone]
  280. self.data = data
  281. finally:
  282. zone_tab.close()
  283. country_timezones = _CountryTimezoneDict()
  284. class _CountryNameDict(LazyDict):
  285. '''Dictionary proving ISO3166 code -> English name.
  286. >>> print(country_names['au'])
  287. Australia
  288. '''
  289. def _fill(self):
  290. data = {}
  291. zone_tab = open_resource('iso3166.tab')
  292. try:
  293. for line in zone_tab.readlines():
  294. line = line.decode('UTF-8')
  295. if line.startswith('#'):
  296. continue
  297. code, name = line.split(None, 1)
  298. data[code] = name.strip()
  299. self.data = data
  300. finally:
  301. zone_tab.close()
  302. country_names = _CountryNameDict()
  303. # Time-zone info based solely on fixed offsets
  304. class _FixedOffset(datetime.tzinfo):
  305. zone = None # to match the standard pytz API
  306. def __init__(self, minutes):
  307. if abs(minutes) >= 1440:
  308. raise ValueError("absolute offset is too large", minutes)
  309. self._minutes = minutes
  310. self._offset = datetime.timedelta(minutes=minutes)
  311. def utcoffset(self, dt):
  312. return self._offset
  313. def __reduce__(self):
  314. return FixedOffset, (self._minutes, )
  315. def dst(self, dt):
  316. return ZERO
  317. def tzname(self, dt):
  318. return None
  319. def __repr__(self):
  320. return 'pytz.FixedOffset(%d)' % self._minutes
  321. def localize(self, dt, is_dst=False):
  322. '''Convert naive time to local time'''
  323. if dt.tzinfo is not None:
  324. raise ValueError('Not naive datetime (tzinfo is already set)')
  325. return dt.replace(tzinfo=self)
  326. def normalize(self, dt, is_dst=False):
  327. '''Correct the timezone information on the given datetime'''
  328. if dt.tzinfo is self:
  329. return dt
  330. if dt.tzinfo is None:
  331. raise ValueError('Naive time - no tzinfo set')
  332. return dt.astimezone(self)
  333. def FixedOffset(offset, _tzinfos={}):
  334. """return a fixed-offset timezone based off a number of minutes.
  335. >>> one = FixedOffset(-330)
  336. >>> one
  337. pytz.FixedOffset(-330)
  338. >>> str(one.utcoffset(datetime.datetime.now()))
  339. '-1 day, 18:30:00'
  340. >>> str(one.dst(datetime.datetime.now()))
  341. '0:00:00'
  342. >>> two = FixedOffset(1380)
  343. >>> two
  344. pytz.FixedOffset(1380)
  345. >>> str(two.utcoffset(datetime.datetime.now()))
  346. '23:00:00'
  347. >>> str(two.dst(datetime.datetime.now()))
  348. '0:00:00'
  349. The datetime.timedelta must be between the range of -1 and 1 day,
  350. non-inclusive.
  351. >>> FixedOffset(1440)
  352. Traceback (most recent call last):
  353. ...
  354. ValueError: ('absolute offset is too large', 1440)
  355. >>> FixedOffset(-1440)
  356. Traceback (most recent call last):
  357. ...
  358. ValueError: ('absolute offset is too large', -1440)
  359. An offset of 0 is special-cased to return UTC.
  360. >>> FixedOffset(0) is UTC
  361. True
  362. There should always be only one instance of a FixedOffset per timedelta.
  363. This should be true for multiple creation calls.
  364. >>> FixedOffset(-330) is one
  365. True
  366. >>> FixedOffset(1380) is two
  367. True
  368. It should also be true for pickling.
  369. >>> import pickle
  370. >>> pickle.loads(pickle.dumps(one)) is one
  371. True
  372. >>> pickle.loads(pickle.dumps(two)) is two
  373. True
  374. """
  375. if offset == 0:
  376. return UTC
  377. info = _tzinfos.get(offset)
  378. if info is None:
  379. # We haven't seen this one before. we need to save it.
  380. # Use setdefault to avoid a race condition and make sure we have
  381. # only one
  382. info = _tzinfos.setdefault(offset, _FixedOffset(offset))
  383. return info
  384. FixedOffset.__safe_for_unpickling__ = True
  385. def _test():
  386. import doctest
  387. sys.path.insert(0, os.pardir)
  388. import pytz
  389. return doctest.testmod(pytz)
  390. if __name__ == '__main__':
  391. _test()
  392. all_timezones = \
  393. ['Africa/Abidjan',
  394. 'Africa/Accra',
  395. 'Africa/Addis_Ababa',
  396. 'Africa/Algiers',
  397. 'Africa/Asmara',
  398. 'Africa/Asmera',
  399. 'Africa/Bamako',
  400. 'Africa/Bangui',
  401. 'Africa/Banjul',
  402. 'Africa/Bissau',
  403. 'Africa/Blantyre',
  404. 'Africa/Brazzaville',
  405. 'Africa/Bujumbura',
  406. 'Africa/Cairo',
  407. 'Africa/Casablanca',
  408. 'Africa/Ceuta',
  409. 'Africa/Conakry',
  410. 'Africa/Dakar',
  411. 'Africa/Dar_es_Salaam',
  412. 'Africa/Djibouti',
  413. 'Africa/Douala',
  414. 'Africa/El_Aaiun',
  415. 'Africa/Freetown',
  416. 'Africa/Gaborone',
  417. 'Africa/Harare',
  418. 'Africa/Johannesburg',
  419. 'Africa/Juba',
  420. 'Africa/Kampala',
  421. 'Africa/Khartoum',
  422. 'Africa/Kigali',
  423. 'Africa/Kinshasa',
  424. 'Africa/Lagos',
  425. 'Africa/Libreville',
  426. 'Africa/Lome',
  427. 'Africa/Luanda',
  428. 'Africa/Lubumbashi',
  429. 'Africa/Lusaka',
  430. 'Africa/Malabo',
  431. 'Africa/Maputo',
  432. 'Africa/Maseru',
  433. 'Africa/Mbabane',
  434. 'Africa/Mogadishu',
  435. 'Africa/Monrovia',
  436. 'Africa/Nairobi',
  437. 'Africa/Ndjamena',
  438. 'Africa/Niamey',
  439. 'Africa/Nouakchott',
  440. 'Africa/Ouagadougou',
  441. 'Africa/Porto-Novo',
  442. 'Africa/Sao_Tome',
  443. 'Africa/Timbuktu',
  444. 'Africa/Tripoli',
  445. 'Africa/Tunis',
  446. 'Africa/Windhoek',
  447. 'America/Adak',
  448. 'America/Anchorage',
  449. 'America/Anguilla',
  450. 'America/Antigua',
  451. 'America/Araguaina',
  452. 'America/Argentina/Buenos_Aires',
  453. 'America/Argentina/Catamarca',
  454. 'America/Argentina/ComodRivadavia',
  455. 'America/Argentina/Cordoba',
  456. 'America/Argentina/Jujuy',
  457. 'America/Argentina/La_Rioja',
  458. 'America/Argentina/Mendoza',
  459. 'America/Argentina/Rio_Gallegos',
  460. 'America/Argentina/Salta',
  461. 'America/Argentina/San_Juan',
  462. 'America/Argentina/San_Luis',
  463. 'America/Argentina/Tucuman',
  464. 'America/Argentina/Ushuaia',
  465. 'America/Aruba',
  466. 'America/Asuncion',
  467. 'America/Atikokan',
  468. 'America/Atka',
  469. 'America/Bahia',
  470. 'America/Bahia_Banderas',
  471. 'America/Barbados',
  472. 'America/Belem',
  473. 'America/Belize',
  474. 'America/Blanc-Sablon',
  475. 'America/Boa_Vista',
  476. 'America/Bogota',
  477. 'America/Boise',
  478. 'America/Buenos_Aires',
  479. 'America/Cambridge_Bay',
  480. 'America/Campo_Grande',
  481. 'America/Cancun',
  482. 'America/Caracas',
  483. 'America/Catamarca',
  484. 'America/Cayenne',
  485. 'America/Cayman',
  486. 'America/Chicago',
  487. 'America/Chihuahua',
  488. 'America/Coral_Harbour',
  489. 'America/Cordoba',
  490. 'America/Costa_Rica',
  491. 'America/Creston',
  492. 'America/Cuiaba',
  493. 'America/Curacao',
  494. 'America/Danmarkshavn',
  495. 'America/Dawson',
  496. 'America/Dawson_Creek',
  497. 'America/Denver',
  498. 'America/Detroit',
  499. 'America/Dominica',
  500. 'America/Edmonton',
  501. 'America/Eirunepe',
  502. 'America/El_Salvador',
  503. 'America/Ensenada',
  504. 'America/Fort_Nelson',
  505. 'America/Fort_Wayne',
  506. 'America/Fortaleza',
  507. 'America/Glace_Bay',
  508. 'America/Godthab',
  509. 'America/Goose_Bay',
  510. 'America/Grand_Turk',
  511. 'America/Grenada',
  512. 'America/Guadeloupe',
  513. 'America/Guatemala',
  514. 'America/Guayaquil',
  515. 'America/Guyana',
  516. 'America/Halifax',
  517. 'America/Havana',
  518. 'America/Hermosillo',
  519. 'America/Indiana/Indianapolis',
  520. 'America/Indiana/Knox',
  521. 'America/Indiana/Marengo',
  522. 'America/Indiana/Petersburg',
  523. 'America/Indiana/Tell_City',
  524. 'America/Indiana/Vevay',
  525. 'America/Indiana/Vincennes',
  526. 'America/Indiana/Winamac',
  527. 'America/Indianapolis',
  528. 'America/Inuvik',
  529. 'America/Iqaluit',
  530. 'America/Jamaica',
  531. 'America/Jujuy',
  532. 'America/Juneau',
  533. 'America/Kentucky/Louisville',
  534. 'America/Kentucky/Monticello',
  535. 'America/Knox_IN',
  536. 'America/Kralendijk',
  537. 'America/La_Paz',
  538. 'America/Lima',
  539. 'America/Los_Angeles',
  540. 'America/Louisville',
  541. 'America/Lower_Princes',
  542. 'America/Maceio',
  543. 'America/Managua',
  544. 'America/Manaus',
  545. 'America/Marigot',
  546. 'America/Martinique',
  547. 'America/Matamoros',
  548. 'America/Mazatlan',
  549. 'America/Mendoza',
  550. 'America/Menominee',
  551. 'America/Merida',
  552. 'America/Metlakatla',
  553. 'America/Mexico_City',
  554. 'America/Miquelon',
  555. 'America/Moncton',
  556. 'America/Monterrey',
  557. 'America/Montevideo',
  558. 'America/Montreal',
  559. 'America/Montserrat',
  560. 'America/Nassau',
  561. 'America/New_York',
  562. 'America/Nipigon',
  563. 'America/Nome',
  564. 'America/Noronha',
  565. 'America/North_Dakota/Beulah',
  566. 'America/North_Dakota/Center',
  567. 'America/North_Dakota/New_Salem',
  568. 'America/Ojinaga',
  569. 'America/Panama',
  570. 'America/Pangnirtung',
  571. 'America/Paramaribo',
  572. 'America/Phoenix',
  573. 'America/Port-au-Prince',
  574. 'America/Port_of_Spain',
  575. 'America/Porto_Acre',
  576. 'America/Porto_Velho',
  577. 'America/Puerto_Rico',
  578. 'America/Punta_Arenas',
  579. 'America/Rainy_River',
  580. 'America/Rankin_Inlet',
  581. 'America/Recife',
  582. 'America/Regina',
  583. 'America/Resolute',
  584. 'America/Rio_Branco',
  585. 'America/Rosario',
  586. 'America/Santa_Isabel',
  587. 'America/Santarem',
  588. 'America/Santiago',
  589. 'America/Santo_Domingo',
  590. 'America/Sao_Paulo',
  591. 'America/Scoresbysund',
  592. 'America/Shiprock',
  593. 'America/Sitka',
  594. 'America/St_Barthelemy',
  595. 'America/St_Johns',
  596. 'America/St_Kitts',
  597. 'America/St_Lucia',
  598. 'America/St_Thomas',
  599. 'America/St_Vincent',
  600. 'America/Swift_Current',
  601. 'America/Tegucigalpa',
  602. 'America/Thule',
  603. 'America/Thunder_Bay',
  604. 'America/Tijuana',
  605. 'America/Toronto',
  606. 'America/Tortola',
  607. 'America/Vancouver',
  608. 'America/Virgin',
  609. 'America/Whitehorse',
  610. 'America/Winnipeg',
  611. 'America/Yakutat',
  612. 'America/Yellowknife',
  613. 'Antarctica/Casey',
  614. 'Antarctica/Davis',
  615. 'Antarctica/DumontDUrville',
  616. 'Antarctica/Macquarie',
  617. 'Antarctica/Mawson',
  618. 'Antarctica/McMurdo',
  619. 'Antarctica/Palmer',
  620. 'Antarctica/Rothera',
  621. 'Antarctica/South_Pole',
  622. 'Antarctica/Syowa',
  623. 'Antarctica/Troll',
  624. 'Antarctica/Vostok',
  625. 'Arctic/Longyearbyen',
  626. 'Asia/Aden',
  627. 'Asia/Almaty',
  628. 'Asia/Amman',
  629. 'Asia/Anadyr',
  630. 'Asia/Aqtau',
  631. 'Asia/Aqtobe',
  632. 'Asia/Ashgabat',
  633. 'Asia/Ashkhabad',
  634. 'Asia/Atyrau',
  635. 'Asia/Baghdad',
  636. 'Asia/Bahrain',
  637. 'Asia/Baku',
  638. 'Asia/Bangkok',
  639. 'Asia/Barnaul',
  640. 'Asia/Beirut',
  641. 'Asia/Bishkek',
  642. 'Asia/Brunei',
  643. 'Asia/Calcutta',
  644. 'Asia/Chita',
  645. 'Asia/Choibalsan',
  646. 'Asia/Chongqing',
  647. 'Asia/Chungking',
  648. 'Asia/Colombo',
  649. 'Asia/Dacca',
  650. 'Asia/Damascus',
  651. 'Asia/Dhaka',
  652. 'Asia/Dili',
  653. 'Asia/Dubai',
  654. 'Asia/Dushanbe',
  655. 'Asia/Famagusta',
  656. 'Asia/Gaza',
  657. 'Asia/Harbin',
  658. 'Asia/Hebron',
  659. 'Asia/Ho_Chi_Minh',
  660. 'Asia/Hong_Kong',
  661. 'Asia/Hovd',
  662. 'Asia/Irkutsk',
  663. 'Asia/Istanbul',
  664. 'Asia/Jakarta',
  665. 'Asia/Jayapura',
  666. 'Asia/Jerusalem',
  667. 'Asia/Kabul',
  668. 'Asia/Kamchatka',
  669. 'Asia/Karachi',
  670. 'Asia/Kashgar',
  671. 'Asia/Kathmandu',
  672. 'Asia/Katmandu',
  673. 'Asia/Khandyga',
  674. 'Asia/Kolkata',
  675. 'Asia/Krasnoyarsk',
  676. 'Asia/Kuala_Lumpur',
  677. 'Asia/Kuching',
  678. 'Asia/Kuwait',
  679. 'Asia/Macao',
  680. 'Asia/Macau',
  681. 'Asia/Magadan',
  682. 'Asia/Makassar',
  683. 'Asia/Manila',
  684. 'Asia/Muscat',
  685. 'Asia/Nicosia',
  686. 'Asia/Novokuznetsk',
  687. 'Asia/Novosibirsk',
  688. 'Asia/Omsk',
  689. 'Asia/Oral',
  690. 'Asia/Phnom_Penh',
  691. 'Asia/Pontianak',
  692. 'Asia/Pyongyang',
  693. 'Asia/Qatar',
  694. 'Asia/Qostanay',
  695. 'Asia/Qyzylorda',
  696. 'Asia/Rangoon',
  697. 'Asia/Riyadh',
  698. 'Asia/Saigon',
  699. 'Asia/Sakhalin',
  700. 'Asia/Samarkand',
  701. 'Asia/Seoul',
  702. 'Asia/Shanghai',
  703. 'Asia/Singapore',
  704. 'Asia/Srednekolymsk',
  705. 'Asia/Taipei',
  706. 'Asia/Tashkent',
  707. 'Asia/Tbilisi',
  708. 'Asia/Tehran',
  709. 'Asia/Tel_Aviv',
  710. 'Asia/Thimbu',
  711. 'Asia/Thimphu',
  712. 'Asia/Tokyo',
  713. 'Asia/Tomsk',
  714. 'Asia/Ujung_Pandang',
  715. 'Asia/Ulaanbaatar',
  716. 'Asia/Ulan_Bator',
  717. 'Asia/Urumqi',
  718. 'Asia/Ust-Nera',
  719. 'Asia/Vientiane',
  720. 'Asia/Vladivostok',
  721. 'Asia/Yakutsk',
  722. 'Asia/Yangon',
  723. 'Asia/Yekaterinburg',
  724. 'Asia/Yerevan',
  725. 'Atlantic/Azores',
  726. 'Atlantic/Bermuda',
  727. 'Atlantic/Canary',
  728. 'Atlantic/Cape_Verde',
  729. 'Atlantic/Faeroe',
  730. 'Atlantic/Faroe',
  731. 'Atlantic/Jan_Mayen',
  732. 'Atlantic/Madeira',
  733. 'Atlantic/Reykjavik',
  734. 'Atlantic/South_Georgia',
  735. 'Atlantic/St_Helena',
  736. 'Atlantic/Stanley',
  737. 'Australia/ACT',
  738. 'Australia/Adelaide',
  739. 'Australia/Brisbane',
  740. 'Australia/Broken_Hill',
  741. 'Australia/Canberra',
  742. 'Australia/Currie',
  743. 'Australia/Darwin',
  744. 'Australia/Eucla',
  745. 'Australia/Hobart',
  746. 'Australia/LHI',
  747. 'Australia/Lindeman',
  748. 'Australia/Lord_Howe',
  749. 'Australia/Melbourne',
  750. 'Australia/NSW',
  751. 'Australia/North',
  752. 'Australia/Perth',
  753. 'Australia/Queensland',
  754. 'Australia/South',
  755. 'Australia/Sydney',
  756. 'Australia/Tasmania',
  757. 'Australia/Victoria',
  758. 'Australia/West',
  759. 'Australia/Yancowinna',
  760. 'Brazil/Acre',
  761. 'Brazil/DeNoronha',
  762. 'Brazil/East',
  763. 'Brazil/West',
  764. 'CET',
  765. 'CST6CDT',
  766. 'Canada/Atlantic',
  767. 'Canada/Central',
  768. 'Canada/Eastern',
  769. 'Canada/Mountain',
  770. 'Canada/Newfoundland',
  771. 'Canada/Pacific',
  772. 'Canada/Saskatchewan',
  773. 'Canada/Yukon',
  774. 'Chile/Continental',
  775. 'Chile/EasterIsland',
  776. 'Cuba',
  777. 'EET',
  778. 'EST',
  779. 'EST5EDT',
  780. 'Egypt',
  781. 'Eire',
  782. 'Etc/GMT',
  783. 'Etc/GMT+0',
  784. 'Etc/GMT+1',
  785. 'Etc/GMT+10',
  786. 'Etc/GMT+11',
  787. 'Etc/GMT+12',
  788. 'Etc/GMT+2',
  789. 'Etc/GMT+3',
  790. 'Etc/GMT+4',
  791. 'Etc/GMT+5',
  792. 'Etc/GMT+6',
  793. 'Etc/GMT+7',
  794. 'Etc/GMT+8',
  795. 'Etc/GMT+9',
  796. 'Etc/GMT-0',
  797. 'Etc/GMT-1',
  798. 'Etc/GMT-10',
  799. 'Etc/GMT-11',
  800. 'Etc/GMT-12',
  801. 'Etc/GMT-13',
  802. 'Etc/GMT-14',
  803. 'Etc/GMT-2',
  804. 'Etc/GMT-3',
  805. 'Etc/GMT-4',
  806. 'Etc/GMT-5',
  807. 'Etc/GMT-6',
  808. 'Etc/GMT-7',
  809. 'Etc/GMT-8',
  810. 'Etc/GMT-9',
  811. 'Etc/GMT0',
  812. 'Etc/Greenwich',
  813. 'Etc/UCT',
  814. 'Etc/UTC',
  815. 'Etc/Universal',
  816. 'Etc/Zulu',
  817. 'Europe/Amsterdam',
  818. 'Europe/Andorra',
  819. 'Europe/Astrakhan',
  820. 'Europe/Athens',
  821. 'Europe/Belfast',
  822. 'Europe/Belgrade',
  823. 'Europe/Berlin',
  824. 'Europe/Bratislava',
  825. 'Europe/Brussels',
  826. 'Europe/Bucharest',
  827. 'Europe/Budapest',
  828. 'Europe/Busingen',
  829. 'Europe/Chisinau',
  830. 'Europe/Copenhagen',
  831. 'Europe/Dublin',
  832. 'Europe/Gibraltar',
  833. 'Europe/Guernsey',
  834. 'Europe/Helsinki',
  835. 'Europe/Isle_of_Man',
  836. 'Europe/Istanbul',
  837. 'Europe/Jersey',
  838. 'Europe/Kaliningrad',
  839. 'Europe/Kiev',
  840. 'Europe/Kirov',
  841. 'Europe/Lisbon',
  842. 'Europe/Ljubljana',
  843. 'Europe/London',
  844. 'Europe/Luxembourg',
  845. 'Europe/Madrid',
  846. 'Europe/Malta',
  847. 'Europe/Mariehamn',
  848. 'Europe/Minsk',
  849. 'Europe/Monaco',
  850. 'Europe/Moscow',
  851. 'Europe/Nicosia',
  852. 'Europe/Oslo',
  853. 'Europe/Paris',
  854. 'Europe/Podgorica',
  855. 'Europe/Prague',
  856. 'Europe/Riga',
  857. 'Europe/Rome',
  858. 'Europe/Samara',
  859. 'Europe/San_Marino',
  860. 'Europe/Sarajevo',
  861. 'Europe/Saratov',
  862. 'Europe/Simferopol',
  863. 'Europe/Skopje',
  864. 'Europe/Sofia',
  865. 'Europe/Stockholm',
  866. 'Europe/Tallinn',
  867. 'Europe/Tirane',
  868. 'Europe/Tiraspol',
  869. 'Europe/Ulyanovsk',
  870. 'Europe/Uzhgorod',
  871. 'Europe/Vaduz',
  872. 'Europe/Vatican',
  873. 'Europe/Vienna',
  874. 'Europe/Vilnius',
  875. 'Europe/Volgograd',
  876. 'Europe/Warsaw',
  877. 'Europe/Zagreb',
  878. 'Europe/Zaporozhye',
  879. 'Europe/Zurich',
  880. 'GB',
  881. 'GB-Eire',
  882. 'GMT',
  883. 'GMT+0',
  884. 'GMT-0',
  885. 'GMT0',
  886. 'Greenwich',
  887. 'HST',
  888. 'Hongkong',
  889. 'Iceland',
  890. 'Indian/Antananarivo',
  891. 'Indian/Chagos',
  892. 'Indian/Christmas',
  893. 'Indian/Cocos',
  894. 'Indian/Comoro',
  895. 'Indian/Kerguelen',
  896. 'Indian/Mahe',
  897. 'Indian/Maldives',
  898. 'Indian/Mauritius',
  899. 'Indian/Mayotte',
  900. 'Indian/Reunion',
  901. 'Iran',
  902. 'Israel',
  903. 'Jamaica',
  904. 'Japan',
  905. 'Kwajalein',
  906. 'Libya',
  907. 'MET',
  908. 'MST',
  909. 'MST7MDT',
  910. 'Mexico/BajaNorte',
  911. 'Mexico/BajaSur',
  912. 'Mexico/General',
  913. 'NZ',
  914. 'NZ-CHAT',
  915. 'Navajo',
  916. 'PRC',
  917. 'PST8PDT',
  918. 'Pacific/Apia',
  919. 'Pacific/Auckland',
  920. 'Pacific/Bougainville',
  921. 'Pacific/Chatham',
  922. 'Pacific/Chuuk',
  923. 'Pacific/Easter',
  924. 'Pacific/Efate',
  925. 'Pacific/Enderbury',
  926. 'Pacific/Fakaofo',
  927. 'Pacific/Fiji',
  928. 'Pacific/Funafuti',
  929. 'Pacific/Galapagos',
  930. 'Pacific/Gambier',
  931. 'Pacific/Guadalcanal',
  932. 'Pacific/Guam',
  933. 'Pacific/Honolulu',
  934. 'Pacific/Johnston',
  935. 'Pacific/Kiritimati',
  936. 'Pacific/Kosrae',
  937. 'Pacific/Kwajalein',
  938. 'Pacific/Majuro',
  939. 'Pacific/Marquesas',
  940. 'Pacific/Midway',
  941. 'Pacific/Nauru',
  942. 'Pacific/Niue',
  943. 'Pacific/Norfolk',
  944. 'Pacific/Noumea',
  945. 'Pacific/Pago_Pago',
  946. 'Pacific/Palau',
  947. 'Pacific/Pitcairn',
  948. 'Pacific/Pohnpei',
  949. 'Pacific/Ponape',
  950. 'Pacific/Port_Moresby',
  951. 'Pacific/Rarotonga',
  952. 'Pacific/Saipan',
  953. 'Pacific/Samoa',
  954. 'Pacific/Tahiti',
  955. 'Pacific/Tarawa',
  956. 'Pacific/Tongatapu',
  957. 'Pacific/Truk',
  958. 'Pacific/Wake',
  959. 'Pacific/Wallis',
  960. 'Pacific/Yap',
  961. 'Poland',
  962. 'Portugal',
  963. 'ROC',
  964. 'ROK',
  965. 'Singapore',
  966. 'Turkey',
  967. 'UCT',
  968. 'US/Alaska',
  969. 'US/Aleutian',
  970. 'US/Arizona',
  971. 'US/Central',
  972. 'US/East-Indiana',
  973. 'US/Eastern',
  974. 'US/Hawaii',
  975. 'US/Indiana-Starke',
  976. 'US/Michigan',
  977. 'US/Mountain',
  978. 'US/Pacific',
  979. 'US/Samoa',
  980. 'UTC',
  981. 'Universal',
  982. 'W-SU',
  983. 'WET',
  984. 'Zulu']
  985. all_timezones = LazyList(
  986. tz for tz in all_timezones if resource_exists(tz))
  987. all_timezones_set = LazySet(all_timezones)
  988. common_timezones = \
  989. ['Africa/Abidjan',
  990. 'Africa/Accra',
  991. 'Africa/Addis_Ababa',
  992. 'Africa/Algiers',
  993. 'Africa/Asmara',
  994. 'Africa/Bamako',
  995. 'Africa/Bangui',
  996. 'Africa/Banjul',
  997. 'Africa/Bissau',
  998. 'Africa/Blantyre',
  999. 'Africa/Brazzaville',
  1000. 'Africa/Bujumbura',
  1001. 'Africa/Cairo',
  1002. 'Africa/Casablanca',
  1003. 'Africa/Ceuta',
  1004. 'Africa/Conakry',
  1005. 'Africa/Dakar',
  1006. 'Africa/Dar_es_Salaam',
  1007. 'Africa/Djibouti',
  1008. 'Africa/Douala',
  1009. 'Africa/El_Aaiun',
  1010. 'Africa/Freetown',
  1011. 'Africa/Gaborone',
  1012. 'Africa/Harare',
  1013. 'Africa/Johannesburg',
  1014. 'Africa/Juba',
  1015. 'Africa/Kampala',
  1016. 'Africa/Khartoum',
  1017. 'Africa/Kigali',
  1018. 'Africa/Kinshasa',
  1019. 'Africa/Lagos',
  1020. 'Africa/Libreville',
  1021. 'Africa/Lome',
  1022. 'Africa/Luanda',
  1023. 'Africa/Lubumbashi',
  1024. 'Africa/Lusaka',
  1025. 'Africa/Malabo',
  1026. 'Africa/Maputo',
  1027. 'Africa/Maseru',
  1028. 'Africa/Mbabane',
  1029. 'Africa/Mogadishu',
  1030. 'Africa/Monrovia',
  1031. 'Africa/Nairobi',
  1032. 'Africa/Ndjamena',
  1033. 'Africa/Niamey',
  1034. 'Africa/Nouakchott',
  1035. 'Africa/Ouagadougou',
  1036. 'Africa/Porto-Novo',
  1037. 'Africa/Sao_Tome',
  1038. 'Africa/Tripoli',
  1039. 'Africa/Tunis',
  1040. 'Africa/Windhoek',
  1041. 'America/Adak',
  1042. 'America/Anchorage',
  1043. 'America/Anguilla',
  1044. 'America/Antigua',
  1045. 'America/Araguaina',
  1046. 'America/Argentina/Buenos_Aires',
  1047. 'America/Argentina/Catamarca',
  1048. 'America/Argentina/Cordoba',
  1049. 'America/Argentina/Jujuy',
  1050. 'America/Argentina/La_Rioja',
  1051. 'America/Argentina/Mendoza',
  1052. 'America/Argentina/Rio_Gallegos',
  1053. 'America/Argentina/Salta',
  1054. 'America/Argentina/San_Juan',
  1055. 'America/Argentina/San_Luis',
  1056. 'America/Argentina/Tucuman',
  1057. 'America/Argentina/Ushuaia',
  1058. 'America/Aruba',
  1059. 'America/Asuncion',
  1060. 'America/Atikokan',
  1061. 'America/Bahia',
  1062. 'America/Bahia_Banderas',
  1063. 'America/Barbados',
  1064. 'America/Belem',
  1065. 'America/Belize',
  1066. 'America/Blanc-Sablon',
  1067. 'America/Boa_Vista',
  1068. 'America/Bogota',
  1069. 'America/Boise',
  1070. 'America/Cambridge_Bay',
  1071. 'America/Campo_Grande',
  1072. 'America/Cancun',
  1073. 'America/Caracas',
  1074. 'America/Cayenne',
  1075. 'America/Cayman',
  1076. 'America/Chicago',
  1077. 'America/Chihuahua',
  1078. 'America/Costa_Rica',
  1079. 'America/Creston',
  1080. 'America/Cuiaba',
  1081. 'America/Curacao',
  1082. 'America/Danmarkshavn',
  1083. 'America/Dawson',
  1084. 'America/Dawson_Creek',
  1085. 'America/Denver',
  1086. 'America/Detroit',
  1087. 'America/Dominica',
  1088. 'America/Edmonton',
  1089. 'America/Eirunepe',
  1090. 'America/El_Salvador',
  1091. 'America/Fort_Nelson',
  1092. 'America/Fortaleza',
  1093. 'America/Glace_Bay',
  1094. 'America/Godthab',
  1095. 'America/Goose_Bay',
  1096. 'America/Grand_Turk',
  1097. 'America/Grenada',
  1098. 'America/Guadeloupe',
  1099. 'America/Guatemala',
  1100. 'America/Guayaquil',
  1101. 'America/Guyana',
  1102. 'America/Halifax',
  1103. 'America/Havana',
  1104. 'America/Hermosillo',
  1105. 'America/Indiana/Indianapolis',
  1106. 'America/Indiana/Knox',
  1107. 'America/Indiana/Marengo',
  1108. 'America/Indiana/Petersburg',
  1109. 'America/Indiana/Tell_City',
  1110. 'America/Indiana/Vevay',
  1111. 'America/Indiana/Vincennes',
  1112. 'America/Indiana/Winamac',
  1113. 'America/Inuvik',
  1114. 'America/Iqaluit',
  1115. 'America/Jamaica',
  1116. 'America/Juneau',
  1117. 'America/Kentucky/Louisville',
  1118. 'America/Kentucky/Monticello',
  1119. 'America/Kralendijk',
  1120. 'America/La_Paz',
  1121. 'America/Lima',
  1122. 'America/Los_Angeles',
  1123. 'America/Lower_Princes',
  1124. 'America/Maceio',
  1125. 'America/Managua',
  1126. 'America/Manaus',
  1127. 'America/Marigot',
  1128. 'America/Martinique',
  1129. 'America/Matamoros',
  1130. 'America/Mazatlan',
  1131. 'America/Menominee',
  1132. 'America/Merida',
  1133. 'America/Metlakatla',
  1134. 'America/Mexico_City',
  1135. 'America/Miquelon',
  1136. 'America/Moncton',
  1137. 'America/Monterrey',
  1138. 'America/Montevideo',
  1139. 'America/Montserrat',
  1140. 'America/Nassau',
  1141. 'America/New_York',
  1142. 'America/Nipigon',
  1143. 'America/Nome',
  1144. 'America/Noronha',
  1145. 'America/North_Dakota/Beulah',
  1146. 'America/North_Dakota/Center',
  1147. 'America/North_Dakota/New_Salem',
  1148. 'America/Ojinaga',
  1149. 'America/Panama',
  1150. 'America/Pangnirtung',
  1151. 'America/Paramaribo',
  1152. 'America/Phoenix',
  1153. 'America/Port-au-Prince',
  1154. 'America/Port_of_Spain',
  1155. 'America/Porto_Velho',
  1156. 'America/Puerto_Rico',
  1157. 'America/Punta_Arenas',
  1158. 'America/Rainy_River',
  1159. 'America/Rankin_Inlet',
  1160. 'America/Recife',
  1161. 'America/Regina',
  1162. 'America/Resolute',
  1163. 'America/Rio_Branco',
  1164. 'America/Santarem',
  1165. 'America/Santiago',
  1166. 'America/Santo_Domingo',
  1167. 'America/Sao_Paulo',
  1168. 'America/Scoresbysund',
  1169. 'America/Sitka',
  1170. 'America/St_Barthelemy',
  1171. 'America/St_Johns',
  1172. 'America/St_Kitts',
  1173. 'America/St_Lucia',
  1174. 'America/St_Thomas',
  1175. 'America/St_Vincent',
  1176. 'America/Swift_Current',
  1177. 'America/Tegucigalpa',
  1178. 'America/Thule',
  1179. 'America/Thunder_Bay',
  1180. 'America/Tijuana',
  1181. 'America/Toronto',
  1182. 'America/Tortola',
  1183. 'America/Vancouver',
  1184. 'America/Whitehorse',
  1185. 'America/Winnipeg',
  1186. 'America/Yakutat',
  1187. 'America/Yellowknife',
  1188. 'Antarctica/Casey',
  1189. 'Antarctica/Davis',
  1190. 'Antarctica/DumontDUrville',
  1191. 'Antarctica/Macquarie',
  1192. 'Antarctica/Mawson',
  1193. 'Antarctica/McMurdo',
  1194. 'Antarctica/Palmer',
  1195. 'Antarctica/Rothera',
  1196. 'Antarctica/Syowa',
  1197. 'Antarctica/Troll',
  1198. 'Antarctica/Vostok',
  1199. 'Arctic/Longyearbyen',
  1200. 'Asia/Aden',
  1201. 'Asia/Almaty',
  1202. 'Asia/Amman',
  1203. 'Asia/Anadyr',
  1204. 'Asia/Aqtau',
  1205. 'Asia/Aqtobe',
  1206. 'Asia/Ashgabat',
  1207. 'Asia/Atyrau',
  1208. 'Asia/Baghdad',
  1209. 'Asia/Bahrain',
  1210. 'Asia/Baku',
  1211. 'Asia/Bangkok',
  1212. 'Asia/Barnaul',
  1213. 'Asia/Beirut',
  1214. 'Asia/Bishkek',
  1215. 'Asia/Brunei',
  1216. 'Asia/Chita',
  1217. 'Asia/Choibalsan',
  1218. 'Asia/Colombo',
  1219. 'Asia/Damascus',
  1220. 'Asia/Dhaka',
  1221. 'Asia/Dili',
  1222. 'Asia/Dubai',
  1223. 'Asia/Dushanbe',
  1224. 'Asia/Famagusta',
  1225. 'Asia/Gaza',
  1226. 'Asia/Hebron',
  1227. 'Asia/Ho_Chi_Minh',
  1228. 'Asia/Hong_Kong',
  1229. 'Asia/Hovd',
  1230. 'Asia/Irkutsk',
  1231. 'Asia/Jakarta',
  1232. 'Asia/Jayapura',
  1233. 'Asia/Jerusalem',
  1234. 'Asia/Kabul',
  1235. 'Asia/Kamchatka',
  1236. 'Asia/Karachi',
  1237. 'Asia/Kathmandu',
  1238. 'Asia/Khandyga',
  1239. 'Asia/Kolkata',
  1240. 'Asia/Krasnoyarsk',
  1241. 'Asia/Kuala_Lumpur',
  1242. 'Asia/Kuching',
  1243. 'Asia/Kuwait',
  1244. 'Asia/Macau',
  1245. 'Asia/Magadan',
  1246. 'Asia/Makassar',
  1247. 'Asia/Manila',
  1248. 'Asia/Muscat',
  1249. 'Asia/Nicosia',
  1250. 'Asia/Novokuznetsk',
  1251. 'Asia/Novosibirsk',
  1252. 'Asia/Omsk',
  1253. 'Asia/Oral',
  1254. 'Asia/Phnom_Penh',
  1255. 'Asia/Pontianak',
  1256. 'Asia/Pyongyang',
  1257. 'Asia/Qatar',
  1258. 'Asia/Qostanay',
  1259. 'Asia/Qyzylorda',
  1260. 'Asia/Riyadh',
  1261. 'Asia/Sakhalin',
  1262. 'Asia/Samarkand',
  1263. 'Asia/Seoul',
  1264. 'Asia/Shanghai',
  1265. 'Asia/Singapore',
  1266. 'Asia/Srednekolymsk',
  1267. 'Asia/Taipei',
  1268. 'Asia/Tashkent',
  1269. 'Asia/Tbilisi',
  1270. 'Asia/Tehran',
  1271. 'Asia/Thimphu',
  1272. 'Asia/Tokyo',
  1273. 'Asia/Tomsk',
  1274. 'Asia/Ulaanbaatar',
  1275. 'Asia/Urumqi',
  1276. 'Asia/Ust-Nera',
  1277. 'Asia/Vientiane',
  1278. 'Asia/Vladivostok',
  1279. 'Asia/Yakutsk',
  1280. 'Asia/Yangon',
  1281. 'Asia/Yekaterinburg',
  1282. 'Asia/Yerevan',
  1283. 'Atlantic/Azores',
  1284. 'Atlantic/Bermuda',
  1285. 'Atlantic/Canary',
  1286. 'Atlantic/Cape_Verde',
  1287. 'Atlantic/Faroe',
  1288. 'Atlantic/Madeira',
  1289. 'Atlantic/Reykjavik',
  1290. 'Atlantic/South_Georgia',
  1291. 'Atlantic/St_Helena',
  1292. 'Atlantic/Stanley',
  1293. 'Australia/Adelaide',
  1294. 'Australia/Brisbane',
  1295. 'Australia/Broken_Hill',
  1296. 'Australia/Currie',
  1297. 'Australia/Darwin',
  1298. 'Australia/Eucla',
  1299. 'Australia/Hobart',
  1300. 'Australia/Lindeman',
  1301. 'Australia/Lord_Howe',
  1302. 'Australia/Melbourne',
  1303. 'Australia/Perth',
  1304. 'Australia/Sydney',
  1305. 'Canada/Atlantic',
  1306. 'Canada/Central',
  1307. 'Canada/Eastern',
  1308. 'Canada/Mountain',
  1309. 'Canada/Newfoundland',
  1310. 'Canada/Pacific',
  1311. 'Europe/Amsterdam',
  1312. 'Europe/Andorra',
  1313. 'Europe/Astrakhan',
  1314. 'Europe/Athens',
  1315. 'Europe/Belgrade',
  1316. 'Europe/Berlin',
  1317. 'Europe/Bratislava',
  1318. 'Europe/Brussels',
  1319. 'Europe/Bucharest',
  1320. 'Europe/Budapest',
  1321. 'Europe/Busingen',
  1322. 'Europe/Chisinau',
  1323. 'Europe/Copenhagen',
  1324. 'Europe/Dublin',
  1325. 'Europe/Gibraltar',
  1326. 'Europe/Guernsey',
  1327. 'Europe/Helsinki',
  1328. 'Europe/Isle_of_Man',
  1329. 'Europe/Istanbul',
  1330. 'Europe/Jersey',
  1331. 'Europe/Kaliningrad',
  1332. 'Europe/Kiev',
  1333. 'Europe/Kirov',
  1334. 'Europe/Lisbon',
  1335. 'Europe/Ljubljana',
  1336. 'Europe/London',
  1337. 'Europe/Luxembourg',
  1338. 'Europe/Madrid',
  1339. 'Europe/Malta',
  1340. 'Europe/Mariehamn',
  1341. 'Europe/Minsk',
  1342. 'Europe/Monaco',
  1343. 'Europe/Moscow',
  1344. 'Europe/Oslo',
  1345. 'Europe/Paris',
  1346. 'Europe/Podgorica',
  1347. 'Europe/Prague',
  1348. 'Europe/Riga',
  1349. 'Europe/Rome',
  1350. 'Europe/Samara',
  1351. 'Europe/San_Marino',
  1352. 'Europe/Sarajevo',
  1353. 'Europe/Saratov',
  1354. 'Europe/Simferopol',
  1355. 'Europe/Skopje',
  1356. 'Europe/Sofia',
  1357. 'Europe/Stockholm',
  1358. 'Europe/Tallinn',
  1359. 'Europe/Tirane',
  1360. 'Europe/Ulyanovsk',
  1361. 'Europe/Uzhgorod',
  1362. 'Europe/Vaduz',
  1363. 'Europe/Vatican',
  1364. 'Europe/Vienna',
  1365. 'Europe/Vilnius',
  1366. 'Europe/Volgograd',
  1367. 'Europe/Warsaw',
  1368. 'Europe/Zagreb',
  1369. 'Europe/Zaporozhye',
  1370. 'Europe/Zurich',
  1371. 'GMT',
  1372. 'Indian/Antananarivo',
  1373. 'Indian/Chagos',
  1374. 'Indian/Christmas',
  1375. 'Indian/Cocos',
  1376. 'Indian/Comoro',
  1377. 'Indian/Kerguelen',
  1378. 'Indian/Mahe',
  1379. 'Indian/Maldives',
  1380. 'Indian/Mauritius',
  1381. 'Indian/Mayotte',
  1382. 'Indian/Reunion',
  1383. 'Pacific/Apia',
  1384. 'Pacific/Auckland',
  1385. 'Pacific/Bougainville',
  1386. 'Pacific/Chatham',
  1387. 'Pacific/Chuuk',
  1388. 'Pacific/Easter',
  1389. 'Pacific/Efate',
  1390. 'Pacific/Enderbury',
  1391. 'Pacific/Fakaofo',
  1392. 'Pacific/Fiji',
  1393. 'Pacific/Funafuti',
  1394. 'Pacific/Galapagos',
  1395. 'Pacific/Gambier',
  1396. 'Pacific/Guadalcanal',
  1397. 'Pacific/Guam',
  1398. 'Pacific/Honolulu',
  1399. 'Pacific/Kiritimati',
  1400. 'Pacific/Kosrae',
  1401. 'Pacific/Kwajalein',
  1402. 'Pacific/Majuro',
  1403. 'Pacific/Marquesas',
  1404. 'Pacific/Midway',
  1405. 'Pacific/Nauru',
  1406. 'Pacific/Niue',
  1407. 'Pacific/Norfolk',
  1408. 'Pacific/Noumea',
  1409. 'Pacific/Pago_Pago',
  1410. 'Pacific/Palau',
  1411. 'Pacific/Pitcairn',
  1412. 'Pacific/Pohnpei',
  1413. 'Pacific/Port_Moresby',
  1414. 'Pacific/Rarotonga',
  1415. 'Pacific/Saipan',
  1416. 'Pacific/Tahiti',
  1417. 'Pacific/Tarawa',
  1418. 'Pacific/Tongatapu',
  1419. 'Pacific/Wake',
  1420. 'Pacific/Wallis',
  1421. 'US/Alaska',
  1422. 'US/Arizona',
  1423. 'US/Central',
  1424. 'US/Eastern',
  1425. 'US/Hawaii',
  1426. 'US/Mountain',
  1427. 'US/Pacific',
  1428. 'UTC']
  1429. common_timezones = LazyList(
  1430. tz for tz in common_timezones if tz in all_timezones)
  1431. common_timezones_set = LazySet(common_timezones)