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

Method testTimeOnlyOffsetLocalDST

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

Source from the content-addressed store, hash-verified

936 timedelta(0))
937
938 def testTimeOnlyOffsetLocalDST(self):
939 with TZEnvContext(self.TZ_EST):
940 self.assertIs(dt_time(13, 20, tzinfo=tz.tzlocal()).utcoffset(),
941 None)
942
943 def testTimeOnlyDSTLocalUTC(self):
944 with TZEnvContext(self.UTC):

Callers

nothing calls this directly

Calls 2

TZEnvContextClass · 0.85
utcoffsetMethod · 0.45

Tested by

no test coverage detected