Lines Matching refs:days

47     "year -> number of days before January 1st of year."
52 "year, month -> number of days in that month in that year."
59 "year, month -> number of days in year preceding first day of month."
72 _DI400Y = _days_before_year(401) # number of days in 400 years
115 # Now n is the (non-negative) offset, in days, from January 1 of year, to
185 if off.days < 0:
230 if offset.days < 0:
481 # Now compute the offset from (Y, 1, 1) in days:
587 Representation: (days, seconds, microseconds). Why? Because I
592 def __new__(cls, days=0, seconds=0, microseconds=0,
608 # Normalize everything to days, seconds, microseconds.
609 days += weeks*7
615 if isinstance(days, float):
616 dayfrac, days = _math.modf(days)
620 assert days == int(days)
621 d = int(days)
624 d = days
629 # days isn't referenced again before redefinition
644 days, seconds = divmod(seconds, 24*3600)
645 d += days
658 days, seconds = divmod(seconds, 24*3600)
659 d += days
664 days, seconds = divmod(seconds, 24*3600)
665 d += days
676 days, s = divmod(s, 24*3600)
677 d += days
684 raise OverflowError("timedelta # of days is too large: %d" % d)
696 args.append("days=%d" % self._days)
721 return ((self.days * 86400 + self.seconds) * 10**6 +
726 def days(self):
727 """days"""
889 timedelta.max = timedelta(days=999999999, hours=23, minutes=59, seconds=59,
1146 o = self.toordinal() + other.days
1157 return self + timedelta(-other.days)
1220 date.resolution = timedelta(days=1)
1777 if trans.days < 0:
2177 if diff.days < 0:
2193 if 0 < delta.days <= _MAXORDINAL:
2194 return type(self).combine(date.fromordinal(delta.days),
2236 days = _ymd2ord(self.year, self.month, self.day)
2238 self._hashcode = hash(timedelta(days, seconds, self.microsecond) - tzoff)