• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/ntp/libntp/

Lines Matching defs:years

367  * ELAPSED date units, which is the number of full years, full months
467 * than 50 years to the year Y. ("century unfolding")
557 * that somehow got lost over the last years.
866 * number into the number of elapsed years in 'res.hi' and the number
870 * regular years and a non-zero value for leap years.
880 * centuries and years in a century with one division each. This
933 /* Split off years in century -- days >= 0 here, and we're far
1009 * upper 16 bits is set after shifting to unity-based years, we
1282 * get leap years since epoch in elapsed years
1287 int32_t years
1298 sf32 = int32_sflag(years);
1299 uyear = (uint32_t)years;
1308 * here. (Only if the years are negative, of course.) Otherwise
1317 * Convert elapsed years in Era into elapsed days in Era.
1322 int32_t years
1325 return years * DAYSPERYEAR + ntpcal_leapyears_in_years(years);
1333 * excessive years that must be considered when converting the years,
1383 * Convert ELAPSED years/months/days of gregorian calendar to elapsed
1386 * If you want to convert years and days-of-year, just give a month of
1392 int32_t years,
1402 res = ntpcal_days_in_years(years + tmp.hi) + tmp.lo;
1404 res = ntpcal_days_in_years(years);
1412 * Convert ELAPSED years/months/days of gregorian calendar to elapsed
1421 int32_t years,
1430 mdays -= 2 - is_leapyear(years+1);
1435 + ntpcal_days_in_years(years + tmp.hi)
1436 - ntpcal_days_in_years(years);
1524 * years and elapsed days, then remove the elapsed days from the
1726 * The ISO8601 calendar defines a calendar of years, weeks and weekdays.
1730 * calendar the ISO8601 calendar repeats itself every 400 years, or
1735 * different approach, based directly on years and weeks.
1738 * interpolate from years to weeks over a full 400 year range; cyclic
1739 * shifts over 400 years do not provide a solution here. But it *is*
1743 * It can be shown that a conversion from years to weeks can be done
1770 * Given a number of elapsed (ISO-)years since the begin of the
1772 * the number of years.
1776 int32_t years
1787 sf32 = int32_sflag(years);
1788 yu = (uint32_t)years;
1818 * era, split this number into the number of elapsed years in res.hi
1876 /* Split off years; sw >= 0 here! The scaled weeks in the years
1883 /* assemble elapsed years and downscale the elapsed weeks in
1932 ds = isocal_split_eraweeks(ds.hi); /* elapsed years&week*/
2157 * 1) The Gregorian calendar has a cycle of 400 years.