Searched refs:isleap (Results 1 – 9 of 9) sorted by relevance
37 if month == 2 and calendar.isleap(year):96 if i == 2 and calendar.isleap(year):
210 self.assertEqual(calendar.isleap(2000), 1)211 self.assertEqual(calendar.isleap(2001), 0)212 self.assertEqual(calendar.isleap(2002), 0)213 self.assertEqual(calendar.isleap(2003), 0)
596 for year, isleap in (2000, True), (2002, False):599 if month == 2 and isleap:
143 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
158 while (days < 0 || days >= (LONG32) year_lengths[yleap = isleap(y)]) { in timesub()285 yourtm.tm_mday += year_lengths[isleap(i)]; in time2sub()289 yourtm.tm_mday -= year_lengths[isleap(i)]; in time2sub()294 i = mon_lengths[isleap(yourtm.tm_year)][yourtm.tm_mon]; in time2sub()
362 len = isleap(year) ? in _fmt()391 yday += isleap(year) ? in _fmt()
486 leapyear = isleap(year); in transtime()669 janfirst += year_lengths[isleap(year)] * in tzparse()
97 def isleap(year): function122 ndays = mdays[month] + (month == February and isleap(year))