Searched defs:is_leap (Results 1 - 1 of 1) sorted by relevance

/bind-9.11.3/lib/dns/
H A Dtime.c42 #define is_leap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) macro
43 #define year_secs(y) ((is_leap(y) ? 366 : 365 ) * 86400)
44 #define month_secs(m,y) ((days[m] + ((m == 1 && is_leap(y)) ? 1 : 0 )) * 86400)
154 ((month == 2 && is_leap(year)) ? 1 : 0), day);
174 if (is_leap(year) && month > 2)
178 secs = (is_leap(i) ? 366 : 365) * 86400;
183 secs = (is_leap(i) ? 366 : 365) * 86400;

Completed in 7 milliseconds