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

Method gettz

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

Source from the content-addressed store, hash-verified

1362 UTC = 'UTC'
1363
1364 def gettz(self, tzname):
1365 tzname_map = {'Australia/Sydney': self.TZ_AEST,
1366 'America/Toronto': self.TZ_EST,
1367 'America/New_York': self.TZ_EST,
1368 'Europe/London': self.TZ_LON}
1369
1370 return tzname_map[tzname]
1371
1372 def testRangeCmp1(self):
1373 self.assertEqual(tz.tzstr("EST5EDT"),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected