Searched refs:days_in_month (Results 1 - 3 of 3) sorted by relevance

/freebsd-12-stable/sys/kern/
H A Dsubr_clock.c93 #define days_in_month(y, m) \ macro
166 ct->day > days_in_month(year, ct->mon) ||
190 days += days_in_month(year, i);
276 for (i = 1; days >= days_in_month(year, i); i++)
277 days -= days_in_month(year, i);
/freebsd-12-stable/contrib/dialog/
H A Dcalendar.c142 days_in_month(struct tm *current, int offset /* -1, 0, 1 */ ) function
224 int last = days_in_month(current, 0);
225 int prev = days_in_month(current, -1);
469 now_time += ONE_DAY * days_in_month(&current, 0);
471 now_time -= ONE_DAY * days_in_month(&current, -1);
630 days_in_month(&current, 0);
633 days_in_month(&current, -1);
/freebsd-12-stable/contrib/ntp/ntpd/
H A Drefclock_leitch.c114 static char days_in_month [] = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; variable
559 if (leitch->day > days_in_month[leitch->month-1])
567 leitch->yearday += days_in_month[i++];

Completed in 119 milliseconds