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

Method testTimeOnlyOffsetLocalDST

tests/test_tz.py:945–948  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

943 timedelta(0))
944
945 def testTimeOnlyOffsetLocalDST(self):
946 with TZEnvContext(self.TZ_EST):
947 self.assertIs(dt_time(13, 20, tzinfo=tz.tzlocal()).utcoffset(),
948 None)
949
950 def testTimeOnlyDSTLocalUTC(self):
951 with TZEnvContext(self.UTC):

Callers

nothing calls this directly

Calls 2

TZEnvContextClass · 0.85
utcoffsetMethod · 0.45

Tested by

no test coverage detected