Lines Matching defs:DST
2435 # Run with US-style DST rules: DST begins 2 a.m. on second Sunday in
2451 # Ambiguous hour defaults to DST
4702 # DST flag.
4703 class DST(tzinfo):
4713 d = cls(1, 1, 1, 10, 20, 30, 40, tzinfo=DST(dstvalue))
4726 self.assertRaises(TypeError, cls(1, 1, 1, tzinfo=DST("x")).timetuple)
4729 self.assertEqual(cls(1,1,1, tzinfo=DST(1439)).timetuple().tm_isdst, 1)
4730 self.assertEqual(cls(1,1,1, tzinfo=DST(-1439)).timetuple().tm_isdst, 1)
4733 self.assertRaises(ValueError, cls(1,1,1, tzinfo=DST(1440)).timetuple)
4734 self.assertRaises(ValueError, cls(1,1,1, tzinfo=DST(-1440)).timetuple)
4737 class DST(tzinfo):
4746 # This can't work: DST didn't implement utcoffset.
4748 cls(1, 1, 1, tzinfo=DST(0)).utcoffset)
4750 class UOFS(DST):
4752 DST.__init__(self, dofs)
4769 # Ensure tm_isdst is 0 regardless of what dst() says: DST
4779 class NOFS(DST):
4787 class BOFS(DST):
5032 # Pain to set up DST-aware tzinfo classes.
5044 # In the US, DST starts at 2am (standard time) on the first Sunday in April.
5046 # and ends at 2am (DST time; 1am standard time) on the last Sunday of Oct,
5049 # the last hour of DST (that's 1:MM DST, but 1:MM is taken as standard time).
5104 # The DST switch times for 2002, in std time.
5110 # Check a time that's inside DST.
5122 # UTC time when DST begins: the clock jumps from 1:59:59
5142 # Because we have a redundant spelling when DST begins, there is
5143 # (unfortunately) an hour when DST ends that can't be spelled at all in
5144 # local time. When DST ends, the clock jumps from 1:59 back to 1:00
5145 # again. The hour 1:MM DST has no spelling then: 1:MM is taken to be
5146 # standard time. 1:MM DST == 0:MM EST, but 0:MM is taken to be
5153 # We're in the hour before the last DST hour. The last DST hour
5162 # Check a time that's outside DST.
5176 # Because 1:MM on the day DST ends is taken as being standard time,
5178 # For purposes of the test, the last hour of DST is 0:MM, which is
5211 # For these adjacent DST-aware time zones, the range of time offsets
5225 # 22:00-0900 is 7:00 UTC == 2:00 EST == 3:00 DST. Since it's "after
5236 # Similar, but map to 6:00 UTC == 1:00 EST == 2:00 DST. In that
5246 # Now on the day DST ends, we want "repeat an hour" behavior.
5287 # whether DST is assumed to be in effect. In this situation,
5318 # Check around DST start.
5339 # Check around DST end.
5512 # DST is in effect.
5521 # DST is off.
5743 # Check that the first instance in DST zone and the second in STD
5781 # With fold=0 (the default) it is in DST.
5791 # With fold=1 it is in DST.
5989 # so let's return 1h whenever DST is in effect. Since