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

Method testTzwinLocalUTCOffset

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

Source from the content-addressed store, hash-verified

2348 datetime.now(tzwin.tzwinlocal())
2349
2350 def testTzwinLocalUTCOffset(self):
2351 with TZWinContext('Eastern Standard Time'):
2352 tzwl = tzwin.tzwinlocal()
2353 self.assertEqual(datetime(2014, 3, 11, tzinfo=tzwl).utcoffset(),
2354 timedelta(hours=-4))
2355
2356 def testTzwinLocalName(self):
2357 # https://github.com/dateutil/dateutil/issues/143

Callers

nothing calls this directly

Calls 2

TZWinContextClass · 0.85
utcoffsetMethod · 0.45

Tested by

no test coverage detected