MCPcopy Create free account
hub / github.com/dateutil/dateutil / gettz

Method gettz

tests/test_tz.py:1494–1501  ·  view source on GitHub ↗
(self, tzname)

Source from the content-addressed store, hash-verified

1492 TZ_LON = 'GMT0BST,M3.5.0,M10.5.0'
1493
1494 def gettz(self, tzname):
1495 # Actual time zone changes are handled by the _gettz_context function
1496 tzname_map = {'Australia/Sydney': self.TZ_AEST,
1497 'America/Toronto': self.TZ_EST,
1498 'America/New_York': self.TZ_EST,
1499 'Europe/London': self.TZ_LON}
1500
1501 return tz.tzstr(tzname_map[tzname])
1502
1503 def testStrTransition(self):
1504 # Check the abbreviation on either side of the DST transition.

Callers 15

test_every_key_loadsFunction · 0.45
test_utc_round_tripFunction · 0.45
test_matches_zoneinfoFunction · 0.45
test_legacy_gettzFunction · 0.45
test_parse_tzinfos_foldFunction · 0.45
test_no_tz_dataFunction · 0.45
test_tzpath_settingFunction · 0.45
test_fromutc_errorsFunction · 0.45
test_unambiguousFunction · 0.45
test_gaps_and_foldsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected