Lines Matching full:calendar
2 * ntp_calendar.c - calendar and helper functions
10 * Calendar algorithms thrive on the division operation, which is one of
43 * calculation steps in the whole calendar that potentially suffer from
265 struct calendar * jd
346 * basic calendar stuff
353 * We use the proleptic Gregorian calendar, which is the Gregorian
354 * calendar extended in both directions ad infinitum. This totally
355 * disregards the fact that this calendar was invented in 1582, and
365 * The basic calculations for this calendar implementation deal with
377 * in the proleptic Gregorian calendar. The begin of the Christian Era
462 * + let Y be a calendar year and V a truncated 2-digit year: then
864 * Given the number of elapsed days in the calendar era, split this
885 int32_t n100, n001; /* calendar year cycles */
990 * Convert a RD into the date part of a 'struct calendar'.
995 struct calendar *jd,
1059 * 'struct calendar'.
1064 struct calendar *jd,
1105 * and convert it to a 'struct calendar'. The seconds will be normalised
1109 * year and <0 if the result did not fit into the calendar struct.
1114 struct calendar *jd,
1147 * Take a UN*X time and convert to a calendar structure.
1152 struct calendar *jd,
1382 * Convert ELAPSED years/months/days of gregorian calendar to elapsed
1411 * Convert ELAPSED years/months/days of gregorian calendar to elapsed
1483 * Convert the date part of a 'struct calendar' (that is, year, month,
1489 const struct calendar *jd
1550 * take a 'struct calendar' and get the seconds-of-day from it.
1555 const struct calendar *jd
1578 * take a 'struct calendar' and convert it to a 'time_t'
1583 const struct calendar *jd
1606 struct calendar *jd,
1620 struct calendar *jd,
1639 const struct calendar *jd
1652 const struct calendar *jd
1723 * ISO week-calendar conversions
1725 * The ISO8601 calendar defines a calendar of years, weeks and weekdays.
1726 * It is related to the Gregorian calendar, and a ISO year starts at the
1728 * calendar year has always 52 or 53 weeks, and like the Grogrian
1729 * calendar the ISO8601 calendar repeats itself every 400 years, or
1732 * While it is possible to write ISO calendar functions based on the
1733 * Gregorian calendar functions, the following implementation takes a
1893 * time stamp around the pivot and convert into an ISO calendar time
1998 struct calendar jd;
2060 struct calendar jd;
2156 * 1) The Gregorian calendar has a cycle of 400 years.
2159 * 3) For calendar math, a century starts with the 1st year,
2164 * date in the 1st century in the proleptic calendar) and the