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

Method gettz

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

Source from the content-addressed store, hash-verified

1885 return '\n'.join(out_tz)
1886
1887 def gettz(self, tzname):
1888 tz_str = self._gettz_str(tzname)
1889
1890 tzc = tz.tzical(StringIO(tz_str)).get()
1891
1892 return tzc
1893
1894 def testRepr(self):
1895 instr = StringIO(TZICAL_PST8PDT)

Callers

nothing calls this directly

Calls 2

_gettz_strMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected