Home
last modified time | relevance | path

Searched refs:days_per_year (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/ntp/ntpd/
H A Drefclock_leitch.c107 static int days_per_year (int);
518 days_per_year( in days_per_year() function
569 if ((days_per_year((leitch->year>90?1900:2000)+leitch->year)==365) && in leitch_get_date()
H A Dcheck_y2k.c333 #define days_per_year(x) ((x) % 4 ? 365 : ((x % 400) ? ((x % 100) ? 366 : 365) : 366)) in main() macro
341 DayCnt = (int)days_per_year(year); in main()
/freebsd/contrib/ntp/libparse/
H A Dparse.c397 #define days_per_year(x) ((x) % 4 ? 365 : ((x % 400) ? ((x % 100) ? 366 : 365) : 366)) macro
440 if (clock_time->month < 3 && days_per_year(clock_time->year) == 366) in parse_to_unixtime()
452 if (clock_time->day < 1 || ((clock_time->month == 2 && days_per_year(clock_time->year) == 366) ? in parse_to_unixtime()
/freebsd/contrib/ntp/parseutil/
H A Ddcfd.c85 #ifndef days_per_year
86 #define days_per_year(_x_) (((_x_) % 4) ? 365 : (((_x_) % 400) ? 365 : 366)) macro
810 if (clock_time->month < 3 && days_per_year(clock_time->year) == 366) in dcf_to_unixtime()
822 if (clock_time->day < 1 || ((clock_time->month == 2 && days_per_year(clock_time->year) == 366) ? in dcf_to_unixtime()
/freebsd/contrib/dialog/
H A Dcalendar.c222 days_per_year(int year) in days_per_year() function
230 return days_per_year(current->tm_year + 1900 + offset); in days_in_year()