Home | History | Annotate | Download | only in libntp

Lines Matching refs:calendar

4  * ntp_calendar.c - calendar and helper functions
12 * Calendar algorithms thrive on the division operation, which is one of
45 * calculation steps in the whole calendar that potentially suffer from
267 struct calendar * jd
348 * basic calendar stuff
355 * We use the proleptic Gregorian calendar, which is the Gregorian
356 * calendar extended in both directions ad infinitum. This totally
357 * disregards the fact that this calendar was invented in 1582, and
367 * The basic calculations for this calendar implementation deal with
379 * in the proleptic Gregorian calendar. The begin of the Christian Era
464 * + let Y be a calendar year and V a truncated 2-digit year: then
866 * Given the number of elapsed days in the calendar era, split this
887 int32_t n100, n001; /* calendar year cycles */
992 * Convert a RD into the date part of a 'struct calendar'.
997 struct calendar *jd,
1061 * 'struct calendar'.
1066 struct calendar *jd,
1107 * and convert it to a 'struct calendar'. The seconds will be normalised
1111 * year and <0 if the result did not fit into the calendar struct.
1116 struct calendar *jd,
1149 * Take a UN*X time and convert to a calendar structure.
1154 struct calendar *jd,
1384 * Convert ELAPSED years/months/days of gregorian calendar to elapsed
1413 * Convert ELAPSED years/months/days of gregorian calendar to elapsed
1485 * Convert the date part of a 'struct calendar' (that is, year, month,
1491 const struct calendar *jd
1552 * take a 'struct calendar' and get the seconds-of-day from it.
1557 const struct calendar *jd
1580 * take a 'struct calendar' and convert it to a 'time_t'
1585 const struct calendar *jd
1608 struct calendar *jd,
1622 struct calendar *jd,
1641 const struct calendar *jd
1654 const struct calendar *jd
1725 * ISO week-calendar conversions
1727 * The ISO8601 calendar defines a calendar of years, weeks and weekdays.
1728 * It is related to the Gregorian calendar, and a ISO year starts at the
1730 * calendar year has always 52 or 53 weeks, and like the Grogrian
1731 * calendar the ISO8601 calendar repeats itself every 400 years, or
1734 * While it is possible to write ISO calendar functions based on the
1735 * Gregorian calendar functions, the following implementation takes a
1895 * time stamp around the pivot and convert into an ISO calendar time
2000 struct calendar jd;
2062 struct calendar jd;
2158 * 1) The Gregorian calendar has a cycle of 400 years.
2161 * 3) For calendar math, a century starts with the 1st year,
2166 * date in the 1st century in the proleptic calendar) and the