Home | History | Annotate | Download | only in includes

Lines Matching defs:dst

9 #  timezones where UTC offset and/or the DST rules had
39 def dst(self, dt):
59 # A complete implementation of current DST rules for major US time zones.
68 # US DST Rules
71 # DST start and end times. For a complete and up-to-date set of DST rules
76 # In the US, since 2007, DST starts at 2am (standard time) on the second
79 # and ends at 2am (DST time) on the first Sunday of Nov.
81 # From 1987 to 2006, DST used to start at 2am (standard time) on the first
82 # Sunday in April and to end at 2am (DST time) on the last
86 # From 1967 to 1986, DST used to start at 2am (standard time) on the last
87 # Sunday in April (the one on or after April 24) and to end at 2am (DST time)
94 # Find start and end times for US DST. For years before 1967, return
95 # start = end for no DST.
122 if self.dst(dt):
128 return self.stdoffset + self.dst(dt)
130 def dst(self, dt):
143 # DST is in effect.
151 # DST is off.