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

Class FauxUSTimeZone

Lib/test/datetimetester.py:6031–6033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6029
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.85

Calls

no outgoing calls

Tested by 1

test_fromutcMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…