/bionic/libc/tzcode/ |
tzfile.h | 153 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro 156 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that 157 ** isleap(y) == isleap(y % 400) 159 ** isleap(a + b) == isleap((a + b) % 400) 161 ** isleap(a + b) == isleap(a % 400 + b % 400) 167 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
|
localtime.c | 932 leapyear = isleap(year); 1113 yearsecs = (year_lengths[isleap(year)] [all...] |
/external/icu/icu4c/source/tools/tzcode/ |
tzfile.h | 153 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro 156 ** Since everything in isleap is modulo 400 (or a factor of 400), we know that 157 ** isleap(y) == isleap(y % 400) 159 ** isleap(a + b) == isleap((a + b) % 400) 161 ** isleap(a + b) == isleap(a % 400 + b % 400) 167 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
|
localtime.c | 840 leapyear = isleap(year); 1022 yearsecs = (year_lengths[isleap(year)] [all...] |
zdump.c | 143 #ifndef isleap 144 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro 145 #endif /* !defined isleap */ 151 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400) 705 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR; 721 seconds = isleap(myy - 1) ? SECSPERLYEAR : SECSPERNYEAR;
|
zic.c | 1296 i = len_years[isleap(j)]; 1300 i = -len_years[isleap(j)]; 1311 i = len_months[isleap(year)][j]; 1317 day <= 0 || day > len_months[isleap(year)][month]) { [all...] |
/device/linaro/bootloader/edk2/StdLib/LibC/Time/ |
tzfile.h | 143 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))
macro
|
Time.c | 158 while (days < 0 || days >= (LONG32) year_lengths[yleap = isleap(y)]) {
285 yourtm.tm_mday += year_lengths[isleap(i)];
289 yourtm.tm_mday -= year_lengths[isleap(i)];
294 i = mon_lengths[isleap(yourtm.tm_year)][yourtm.tm_mon];
|
strftime.c | 362 len = isleap(year) ?
391 yday += isleap(year) ?
|
ZoneProc.c | 486 leapyear = isleap(year);
669 janfirst += year_lengths[isleap(year)] *
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/ |
unbirthday.py | 37 if month == 2 and calendar.isleap(year):
96 if i == 2 and calendar.isleap(year):
|
/external/python/cpython2/Demo/scripts/ |
unbirthday.py | 37 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/ |
test_calendar.py | 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)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_calendar.py | 211 self.assertEqual(calendar.isleap(2000), 1) 212 self.assertEqual(calendar.isleap(2001), 0) 213 self.assertEqual(calendar.isleap(2002), 0) 214 self.assertEqual(calendar.isleap(2003), 0)
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_calendar.py | 211 self.assertEqual(calendar.isleap(2000), 1) 212 self.assertEqual(calendar.isleap(2001), 0) 213 self.assertEqual(calendar.isleap(2002), 0) 214 self.assertEqual(calendar.isleap(2003), 0)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_calendar.py | 211 self.assertEqual(calendar.isleap(2000), 1) 212 self.assertEqual(calendar.isleap(2001), 0) 213 self.assertEqual(calendar.isleap(2002), 0) 214 self.assertEqual(calendar.isleap(2003), 0)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_calendar.py | 211 self.assertEqual(calendar.isleap(2000), 1) 212 self.assertEqual(calendar.isleap(2001), 0) 213 self.assertEqual(calendar.isleap(2002), 0) 214 self.assertEqual(calendar.isleap(2003), 0)
|
/external/python/cpython2/Lib/test/ |
test_calendar.py | 222 self.assertEqual(calendar.isleap(2000), 1) 223 self.assertEqual(calendar.isleap(2001), 0) 224 self.assertEqual(calendar.isleap(2002), 0) 225 self.assertEqual(calendar.isleap(2003), 0) [all...] |
/external/python/cpython3/Lib/test/ |
test_calendar.py | 430 self.assertEqual(calendar.isleap(2000), 1) 431 self.assertEqual(calendar.isleap(2001), 0) 432 self.assertEqual(calendar.isleap(2002), 0) 433 self.assertEqual(calendar.isleap(2003), 0) [all...] |
/external/python/cpython2/Lib/ |
_strptime.py | 450 yday = 366 if calendar.isleap(year) else 365
|
calendar.py | 13 "firstweekday", "isleap", "leapdays", "weekday", "monthrange", 97 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/ |
calendar.py | 13 "firstweekday", "isleap", "leapdays", "weekday", "monthrange",
97 def isleap(year):
function 122 ndays = mdays[month] + (month == February and isleap(year))
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
calendar.py | 13 "firstweekday", "isleap", "leapdays", "weekday", "monthrange",
97 def isleap(year):
function 122 ndays = mdays[month] + (month == February and isleap(year))
|
/external/python/cpython3/Lib/ |
calendar.py | 14 "firstweekday", "isleap", "leapdays", "weekday", "monthrange", 100 def isleap(year): function 125 ndays = mdays[month] + (month == February and isleap(year))
|
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
calendar.py | 13 "firstweekday", "isleap", "leapdays", "weekday", "monthrange", 97 def isleap(year): function 122 ndays = mdays[month] + (month == February and isleap(year))
|