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

Method testTimeOnlyFormatZ

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

Source from the content-addressed store, hash-verified

1052 self.assertIs(dt_time(13, 20, tzinfo=tz_get).tzname(), None)
1053
1054 def testTimeOnlyFormatZ(self):
1055 tz_get = self.gettz('Europe/Minsk')
1056 t = dt_time(13, 20, tzinfo=tz_get)
1057
1058 self.assertEqual(t.strftime('%H%M%Z'), '1320')
1059
1060 def testPortugalDST(self):
1061 # In 1996, Portugal changed from CET to WET

Callers

nothing calls this directly

Calls 1

gettzMethod · 0.45

Tested by

no test coverage detected