Searched refs:leapyear (Results 1 – 5 of 5) sorted by relevance
/external/u-boot/drivers/rtc/ |
D | date.c | 18 #define leapyear(year) ((year) % 4 == 0) macro 19 #define days_in_year(a) (leapyear(a) ? 366 : 365) 87 if (leapyear(tm->tm_year)) in rtc_to_tm()
|
/external/icu/icu4c/source/tools/tzcode/ |
D | localtime.c | 834 register int leapyear; in transtime() local 840 leapyear = isleap(year); in transtime() 852 if (leapyear && rulep->r_day >= 60) in transtime() 893 mon_lengths[leapyear][rulep->r_mon - 1]) in transtime() 903 value += mon_lengths[leapyear][i] * SECSPERDAY; in transtime()
|
/external/python/cpython3/Lib/ |
D | datetime.py | 131 leapyear = n1 == 3 and (n4 != 24 or n100 == 3) 132 assert leapyear == _is_leap(year) 134 preceding = _DAYS_BEFORE_MONTH[month] + (month > 2 and leapyear) 137 preceding -= _DAYS_IN_MONTH[month] + (month == 2 and leapyear)
|
/external/python/cpython2/Modules/ |
D | datetimemodule.c | 246 int n, n1, n4, n100, n400, leapyear, preceding; in ord_to_ymd() local 310 leapyear = n1 == 3 && (n4 != 24 || n100 == 3); in ord_to_ymd() 311 assert(leapyear == is_leap(*year)); in ord_to_ymd() 313 preceding = (_days_before_month[*month] + (*month > 2 && leapyear)); in ord_to_ymd()
|
/external/python/cpython3/Modules/ |
D | _datetimemodule.c | 268 int n, n1, n4, n100, n400, leapyear, preceding; in ord_to_ymd() local 332 leapyear = n1 == 3 && (n4 != 24 || n100 == 3); in ord_to_ymd() 333 assert(leapyear == is_leap(*year)); in ord_to_ymd() 335 preceding = (_days_before_month[*month] + (*month > 2 && leapyear)); in ord_to_ymd()
|