Lines Matching defs:year
2 * clocktime - compute the NTP date from a day of year, hour, minute
21 * change when we are already less than a half year from the receive
22 * time stamp. Since the length of a year is variable we use a
35 * Take a time spec given as day-of-year, hour, minute and second as
38 * (rec_ui+0.5yrs). A hint for the current start-of-year will be
42 * '*yearstart' will receive the associated start-of-year.
53 int yday , /* day-of-year */
59 u_long *yearstart, /* cached start-of-year, should be fixed to u_int32 */
62 u_int32 ystt[3]; /* year start */
68 * Compute the offset into the year in seconds. Note that
76 * Based on the cached year start, do a first attempt. Be
78 * the receive time stamp. Do this only if the cached year
99 * about the year to start with. This takes us on the spot
100 * with a fuzz of +/-1 year.
108 /* -- get year start of potential solution */
117 /* -*- assume current year fits best, then search best fit */
121 /* -*- store results and update year start */
144 int32 year)
147 days = ntpcal_days_in_years(year-1) - DAY_NTP_STARTS + 1;