Lines Matching refs:calendar
4 * ntp_calendar.h - definitions for the calendar time-of-day routine
13 /* gregorian calendar date */
14 struct calendar {
24 typedef struct calendar TCivilDate;
25 typedef struct calendar const TcCivilDate;
27 /* ISO week calendar date */
118 extern char * ntpcal_iso8601std(char*, size_t, struct calendar const*);
119 extern void caljulian (uint32_t, struct calendar *);
120 extern uint32_t caltontp (const struct calendar *);
135 ntpcal_get_build_date(struct calendar * /* jd */);
208 * Convert ELAPSED years/months/days of gregorian calendar to elapsed
221 * Convert ELAPSED years/months/days of gregorian calendar to elapsed
238 * Convert the date part of a 'struct calendar' (that is, year, month,
242 ntpcal_date_to_rd(const struct calendar * /* jt */);
245 * Given the number of elapsed days in the calendar era, split this
269 * calendar'. Return 0 if the year is regular year, !0 if the year is
273 ntpcal_rd_to_date(struct calendar * /* jt */, int32_t /* rd */);
285 * a 'struct calendar'. Return excessive days.
288 ntpcal_daysec_to_date(struct calendar * /* jt */, int32_t /* secs */);
291 * Take the time part of a 'struct calendar' and return the seconds
295 ntpcal_date_to_daysec(const struct calendar *);
321 * convert a RataDie to the RataDie of start of the calendar month.
328 ntpcal_daysplit_to_date(struct calendar * /* jt */,
336 ntpcal_time_to_date(struct calendar * /* jd */, const vint64 * /* ts */);
343 ntpcal_ntp64_to_date(struct calendar * /* jd */, const vint64 * /* ntp */);
346 ntpcal_ntp_to_date(struct calendar * /* jd */, uint32_t /* ntp */,
350 ntpcal_date_to_ntp64(const struct calendar * /* jd */);
353 ntpcal_date_to_ntp(const struct calendar * /* jd */);
356 ntpcal_date_to_time(const struct calendar * /* jd */);
359 * ISO week-calendar conversions
441 * Gregorian calendar. (So 0001-01-01 is day number 1; this is the Rata
468 * Days in a normal 4 year leap year calendar cycle (1461).
473 * Days in a normal 100 year leap year calendar (36524). We lose a
480 * The Gregorian calendar is based on a 400 year cycle. This is the
492 * Is a Greogorian calendar year a leap year? The obvious solution is to