MCPcopy Index your code
hub / github.com/python/cpython / fromutc

Method fromutc

Lib/test/datetimetester.py:6032–6033  ·  view source on GitHub ↗
(self, dt)

Source from the content-addressed store, hash-verified

6030 # Always converts UTC to standard time.
6031 class FauxUSTimeZone(USTimeZone):
6032 def fromutc(self, dt):
6033 return dt + self.stdoffset
6034 FEastern = FauxUSTimeZone(-5, "FEastern", "FEST", "FEDT")
6035
6036 # UTC 4:MM 5:MM 6:MM 7:MM 8:MM 9:MM

Callers 1

test_fromutcMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected