Searched refs:isleap (Results 1 – 4 of 4) sorted by relevance
153 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro167 #define isleap_sum(a, b) isleap((a) % 400 + (b) % 400)
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()
142 #ifndef isleap143 #define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) macro150 #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()
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()