/external/icu/icu4c/source/tools/tzcode/ |
D | tzfile.h | 153 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro 167 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
|
D | localtime.c | 840 leapyear = isleap(year); in transtime() 1022 yearsecs = (year_lengths[isleap(year)] in tzparse() 1457 while (tdays < 0 || tdays >= year_lengths[isleap(y)]) { in timesub() 1502 idays += year_lengths[isleap(y)]; in timesub() 1504 while (idays >= year_lengths[isleap(y)]) { in timesub() 1505 idays -= year_lengths[isleap(y)]; in timesub() 1533 ip = mon_lengths[isleap(y)]; in timesub() 1709 yourtm.tm_mday += year_lengths[isleap(li)]; in time2sub() 1713 yourtm.tm_mday -= year_lengths[isleap(li)]; in time2sub() 1718 i = mon_lengths[isleap(y)][yourtm.tm_mon]; in time2sub()
|
D | zdump.c | 143 #ifndef isleap 144 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro 151 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400) 705 seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot() 721 seconds = isleap(myy - 1) ? SECSPERLYEAR : SECSPERNYEAR; in yeartot()
|
D | zic.c | 1296 i = len_years[isleap(j)]; in inleap() 1300 i = -len_years[isleap(j)]; in inleap() 1311 i = len_months[isleap(year)][j]; in inleap() 1317 day <= 0 || day > len_months[isleap(year)][month]) { in inleap() 2996 i = len_years[isleap(y)]; in rpytime() 3000 i = -len_years[isleap(y)]; in rpytime() 3005 i = len_months[isleap(y)][m]; in rpytime() 3010 if (m == TM_FEBRUARY && i == 29 && !isleap(y)) { in rpytime() 3047 if (i < 0 || i >= len_months[isleap(y)][m]) { in rpytime()
|
/external/python/cpython2/Demo/scripts/ |
D | unbirthday.py | 37 if month == 2 and calendar.isleap(year): 96 if i == 2 and calendar.isleap(year):
|
/external/python/cpython2/Lib/test/ |
D | 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)
|
D | test_datetime.py | 636 for year, isleap in (2000, True), (2002, False): 639 if month == 2 and isleap:
|
/external/python/cpython3/Lib/test/ |
D | test_calendar.py | 498 self.assertEqual(calendar.isleap(2000), 1) 499 self.assertEqual(calendar.isleap(2001), 0) 500 self.assertEqual(calendar.isleap(2002), 0) 501 self.assertEqual(calendar.isleap(2003), 0)
|
D | datetimetester.py | 1151 for year, isleap in (2000, True), (2002, False): 1154 if month == 2 and isleap:
|
/external/python/cpython3/Lib/ |
D | calendar.py | 100 def isleap(year): function 126 ndays = mdays[month] + (month == February and isleap(year)) 131 return mdays[month] + (month == February and isleap(year))
|
D | _strptime.py | 526 yday = 366 if calendar.isleap(year) else 365
|
/external/python/dateutil/dateutil/parser/ |
D | isoparser.py | 288 if ordinal_day < 1 or ordinal_day > (365 + calendar.isleap(year)):
|
/external/python/cpython2/Lib/ |
D | calendar.py | 97 def isleap(year): function 122 ndays = mdays[month] + (month == February and isleap(year))
|
D | _strptime.py | 450 yday = 366 if calendar.isleap(year) else 365
|
/external/python/cpython3/Lib/zoneinfo/ |
D | _zoneinfo.py | 534 if self.julian and d >= 59 and calendar.isleap(year): 584 + (month > 2 and calendar.isleap(year))
|
/external/python/dateutil/dateutil/ |
D | rrule.py | 1126 self.yearlen = 365 + calendar.isleap(year) 1127 self.nextyearlen = 365 + calendar.isleap(year + 1) 1203 lyearlen = 365+calendar.isleap(year-1)
|
D | relativedelta.py | 385 if self.leapdays and month > 2 and calendar.isleap(year):
|
/external/python/cpython2/Doc/library/ |
D | calendar.rst | 229 .. function:: isleap(year)
|
/external/python/cpython3/Doc/library/ |
D | calendar.rst | 318 .. function:: isleap(year)
|
/external/protobuf/php/ext/google/protobuf/ |
D | upb.c | 10466 static bool isleap(int year) { in isleap() function 10499 int mon_yday = ((__mon_yday[isleap(year)][mon]) - 1); in upb_mktime()
|
/external/protobuf/ruby/ext/google/protobuf_c/ |
D | upb.c | 14305 static bool isleap(int year) { in isleap() function 14337 int mon_yday = ((__mon_yday[isleap(year)][mon]) - 1); in upb_mktime()
|