Lines Matching defs:DST

2722         # DST flag.
2723 class DST(tzinfo):
2733 d = cls(1, 1, 1, 10, 20, 30, 40, tzinfo=DST(dstvalue))
2746 self.assertRaises(TypeError, cls(1, 1, 1, tzinfo=DST("x")).timetuple)
2749 self.assertEqual(cls(1,1,1, tzinfo=DST(1439)).timetuple().tm_isdst, 1)
2750 self.assertEqual(cls(1,1,1, tzinfo=DST(-1439)).timetuple().tm_isdst, 1)
2753 self.assertRaises(ValueError, cls(1,1,1, tzinfo=DST(1440)).timetuple)
2754 self.assertRaises(ValueError, cls(1,1,1, tzinfo=DST(-1440)).timetuple)
2757 class DST(tzinfo):
2766 # This can't work: DST didn't implement utcoffset.
2768 cls(1, 1, 1, tzinfo=DST(0)).utcoffset)
2770 class UOFS(DST):
2772 DST.__init__(self, dofs)
2777 # Ensure tm_isdst is 0 regardless of what dst() says: DST is never
3010 # Pain to set up DST-aware tzinfo classes.
3021 # In the US, DST starts at 2am (standard time) on the first Sunday in April.
3023 # and ends at 2am (DST time; 1am standard time) on the last Sunday of Oct,
3026 # the last hour of DST (that's 1:MM DST, but 1:MM is taken as standard time).
3081 # The DST switch times for 2002, in std time.
3087 # Check a time that's inside DST.
3099 # UTC time when DST begins: the clock jumps from 1:59:59
3119 # Because we have a redundant spelling when DST begins, there is
3120 # (unfortunately) an hour when DST ends that can't be spelled at all in
3121 # local time. When DST ends, the clock jumps from 1:59 back to 1:00
3122 # again. The hour 1:MM DST has no spelling then: 1:MM is taken to be
3123 # standard time. 1:MM DST == 0:MM EST, but 0:MM is taken to be
3130 # We're in the hour before the last DST hour. The last DST hour
3139 # Check a time that's outside DST.
3153 # Because 1:MM on the day DST ends is taken as being standard time,
3155 # For purposes of the test, the last hour of DST is 0:MM, which is
3188 # For these adjacent DST-aware time zones, the range of time offsets
3202 # 22:00-0900 is 7:00 UTC == 2:00 EST == 3:00 DST. Since it's "after
3213 # Similar, but map to 6:00 UTC == 1:00 EST == 2:00 DST. In that
3223 # Now on the day DST ends, we want "repeat an hour" behavior.
3282 # Check around DST start.
3303 # Check around DST end.