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

Method _gettz_context

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

Source from the content-addressed store, hash-verified

872 return tz.tzlocal()
873
874 def _gettz_context(self, tzname):
875 tzname_map = {'Australia/Sydney': self.TZ_AEST,
876 'America/Toronto': self.TZ_EST,
877 'America/New_York': self.TZ_EST,
878 'Europe/London': self.TZ_LON}
879
880 return TZEnvContext(tzname_map.get(tzname, tzname))
881
882 def _testTzFunc(self, tzval, func, std_val, dst_val):
883 """

Callers

nothing calls this directly

Calls 2

TZEnvContextClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected