Home
last modified time | relevance | path

Searched refs:leapdays (Results 1 – 9 of 9) sorted by relevance

/external/python/dateutil/dateutil/
Drelativedelta.py92 years=0, months=0, days=0, leapdays=0, weeks=0, argument
116 self.leapdays = 0
166 self.leapdays = leapdays
200 self.leapdays = -1
297 leapdays=self.leapdays, year=self.year,
313 leapdays=other.leapdays or self.leapdays,
339 leapdays=self.leapdays,
371 if self.leapdays and month > 2 and calendar.isleap(year):
372 days += self.leapdays
406 leapdays=self.leapdays or other.leapdays,
[all …]
/external/python/cpython2/Lib/test/
Dtest_calendar.py477 self.assertEqual(calendar.leapdays(2010,2010), 0)
481 self.assertEqual(calendar.leapdays(2010,2011), 0)
485 self.assertEqual(calendar.leapdays(2010,2012), 0)
489 self.assertEqual(calendar.leapdays(2012,2013), 1)
492 self.assertEqual(calendar.leapdays(1997,2020), 5)
/external/python/cpython3/Lib/test/
Dtest_calendar.py771 self.assertEqual(calendar.leapdays(2010,2010), 0)
775 self.assertEqual(calendar.leapdays(2010,2011), 0)
779 self.assertEqual(calendar.leapdays(2010,2012), 0)
783 self.assertEqual(calendar.leapdays(2012,2013), 1)
786 self.assertEqual(calendar.leapdays(1997,2020), 5)
/external/python/dateutil/dateutil/test/
Dtest_relativedelta.py21 ccRD = rdChildClass(years=1, months=1, days=1, leapdays=1, weeks=1,
24 rd = relativedelta(years=1, months=1, days=1, leapdays=1, weeks=1,
288 d1 = relativedelta(years=1, months=1, days=1, leapdays=0, hours=1,
290 d2 = relativedelta(years=1, months=1, days=1, leapdays=0, hours=1,
292 d3 = relativedelta(years=1, months=1, days=1, leapdays=0, hours=1,
/external/icu/icu4c/source/tools/tzcode/
Dlocaltime.c1461 register int leapdays; in timesub() local
1473 leapdays = leaps_thru_end_of(newy - 1) - in timesub()
1476 tdays -= leapdays; in timesub()
/external/python/cpython2/Lib/
Dcalendar.py102 def leapdays(y1, y2): function
/external/python/cpython3/Lib/
Dcalendar.py105 def leapdays(y1, y2): function
/external/python/cpython2/Doc/library/
Dcalendar.rst234 .. function:: leapdays(y1, y2)
/external/python/cpython3/Doc/library/
Dcalendar.rst323 .. function:: leapdays(y1, y2)