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

Method testTimeOnlyOffsetLocalUTC

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

Source from the content-addressed store, hash-verified

938 self._testDST(self.UTC, timedelta(0))
939
940 def testTimeOnlyOffsetLocalUTC(self):
941 with TZEnvContext(self.UTC):
942 self.assertEqual(dt_time(13, 20, tzinfo=tz.tzlocal()).utcoffset(),
943 timedelta(0))
944
945 def testTimeOnlyOffsetLocalDST(self):
946 with TZEnvContext(self.TZ_EST):

Callers

nothing calls this directly

Calls 2

TZEnvContextClass · 0.85
utcoffsetMethod · 0.45

Tested by

no test coverage detected