Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/
Dunbirthday.py37 if month == 2 and calendar.isleap(year):
96 if i == 2 and calendar.isleap(year):
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_calendar.py210 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)
Dtest_datetime.py596 for year, isleap in (2000, True), (2002, False):
599 if month == 2 and isleap:
/device/linaro/bootloader/edk2/StdLib/LibC/Time/
Dtzfile.h143 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro
DTime.c158 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()
Dstrftime.c362 len = isleap(year) ? in _fmt()
391 yday += isleap(year) ? in _fmt()
DZoneProc.c486 leapyear = isleap(year); in transtime()
669 janfirst += year_lengths[isleap(year)] * in tzparse()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcalendar.py97 def isleap(year): function
122 ndays = mdays[month] + (month == February and isleap(year))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dcalendar.py97 def isleap(year): function
122 ndays = mdays[month] + (month == February and isleap(year))