MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / AmbiguousTimeError

Class AmbiguousTimeError

tests/test_code/py/pytz/exceptions.py:42–50  ·  view source on GitHub ↗

Exception raised when attempting to create an ambiguous wallclock time. At the end of a DST transition period, a particular wallclock time will occur twice (once before the clocks are set back, once after). Both possibilities may be correct, unless further information is supplied.

Source from the content-addressed store, hash-verified

40
41
42class AmbiguousTimeError(InvalidTimeError):
43 '''Exception raised when attempting to create an ambiguous wallclock time.
44
45 At the end of a DST transition period, a particular wallclock time will
46 occur twice (once before the clocks are set back, once after). Both
47 possibilities may be correct, unless further information is supplied.
48
49 See DstTzInfo.normalize() for more info
50 '''
51
52
53class NonExistentTimeError(InvalidTimeError):

Callers 1

localizeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected