Lines Matching +full:part +full:- +full:number

2  * ntp_calendar.h - definitions for the calendar time-of-day routine
54 * days-of-week
105 #define TIMES60(val) ((((val)<<4) - (val))<<2) /* *(16 - 1) * 4 */
107 #define TIMES7(val) (((val)<<3) - (val)) /* *8 - *1 */
167 * Merge a number of days and a number of seconds into seconds,
174 * Merge a number of weeks and a number of seconds into seconds,
180 /* Get the number of leap years since epoch for the number of elapsed
193 * Convert a number of elapsed month in a year into elapsed days
223 * even if months & days are off-scale.
229 * Convert the date part of a 'struct tm' (that is, year, month,
230 * day-of-month) into the RataDie of that day.
236 * Convert the date part of a 'struct calendar' (that is, year, month,
237 * day-of-month) into the RataDie of that day.
243 * Given the number of elapsed days in the calendar era, split this
244 * number into the number of elapsed years in 'res.quot' and the
245 * number of elapsed days of that year in 'res.rem'.
248 * for regular years and a non-zero value for leap years.
250 * The input is limited to [-2^30, 2^30-1]. If the days exceed this
257 * Given a number of elapsed days in a year and a leap year indicator,
258 * split the number of elapsed days into the number of elapsed months
259 * in 'res.quot' and the number of elapsed days of that month in
266 * Convert a RataDie number into the date part of a 'struct
274 * Convert a RataDie number into the date part of a 'struct
289 * Take the time part of a 'struct calendar' and return the seconds
306 * convert a year number to rata die of year start
357 * ISO week-calendar conversions
363 * The input is limited to [-2^30, 2^30-1]. If the weeks exceed this
384 * day-of-week calculations
386 * Given a RataDie and a day-of-week, calculate a RDN that is reater-than,
387 * greater-or equal, closest, less-or-equal or less-than the given RDN
388 * and denotes the given day-of-week
438 * Start day of NTP time as days past 0000-12-31 in the proleptic
439 * Gregorian calendar. (So 0001-01-01 is day number 1; this is the Rata
446 * Start day of the UNIX epoch. This is the Rata Die of 1970-01-01.
451 * Start day of the GPS epoch. This is the Rata Die of 1980-01-06
458 #define NTP_TO_UNIX_DAYS (DAY_UNIX_STARTS - DAY_NTP_STARTS)
463 #define NTP_TO_GPS_DAYS (DAY_GPS_STARTS - DAY_NTP_STARTS)
475 (25 * GREGORIAN_NORMAL_LEAP_CYCLE_DAYS - 1)
479 * number of days in each cycle (146097). We gain a leap day in years
485 * Number of weeks in 400 years (20871).
495 * This needs (in theory) 2 true divisions -- most compilers check the
505 * true division here -- the (mod 4) and (mod 16) can be done with