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

Method testTimeOnlyOffsetLocalUTC

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

Source from the content-addressed store, hash-verified

931 self._testDST(self.UTC, timedelta(0))
932
933 def testTimeOnlyOffsetLocalUTC(self):
934 with TZEnvContext(self.UTC):
935 self.assertEqual(dt_time(13, 20, tzinfo=tz.tzlocal()).utcoffset(),
936 timedelta(0))
937
938 def testTimeOnlyOffsetLocalDST(self):
939 with TZEnvContext(self.TZ_EST):

Callers

nothing calls this directly

Calls 2

TZEnvContextClass · 0.85
utcoffsetMethod · 0.45

Tested by

no test coverage detected