MCPcopy Index your code
hub / github.com/RustPython/RustPython / FauxUSTimeZone

Class FauxUSTimeZone

Lib/test/datetimetester.py:5844–5846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5842
5843 # Always converts UTC to standard time.
5844 class FauxUSTimeZone(USTimeZone):
5845 def fromutc(self, dt):
5846 return dt + self.stdoffset
5847 FEastern = FauxUSTimeZone(-5, "FEastern", "FEST", "FEDT")
5848
5849 # 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