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

Method testTimeOnlyOffset

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

Source from the content-addressed store, hash-verified

700 None)
701
702 def testTimeOnlyOffset(self):
703 # tzoffset doesn't care
704 tz_offset = tz.tzoffset('+3', 3600)
705 self.assertEqual(dt_time(13, 20, tzinfo=tz_offset).utcoffset(),
706 timedelta(seconds=3600))
707
708 def testTzOffsetRepr(self):
709 tname = 'EST'

Callers

nothing calls this directly

Calls 2

tzoffsetMethod · 0.80
utcoffsetMethod · 0.45

Tested by

no test coverage detected