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

Method testTimeOnlyOffset

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

Source from the content-addressed store, hash-verified

682 None)
683
684 def testTimeOnlyOffset(self):
685 # tzoffset doesn't care
686 tz_offset = tz.tzoffset('+3', 3600)
687 self.assertEqual(dt_time(13, 20, tzinfo=tz_offset).utcoffset(),
688 timedelta(seconds=3600))
689
690 def testTzOffsetRepr(self):
691 tname = 'EST'

Callers

nothing calls this directly

Calls 2

tzoffsetMethod · 0.80
utcoffsetMethod · 0.45

Tested by

no test coverage detected