FreeBSD/contrib/ntp/libntp/ntp_calendar.c
/*
 * ====================================================================
 *
 * extended and unchecked variants of caljulian/caltontp
 *
 * ====================================================================
 */
extended and unchecked variants of caljulian/caltontp
extended and unchecked variants of caljulian / caltontp
int
ntpcal_ntp64_to_date(
	struct calendar *jd,
	const vint64    *ntp
	)
{
	ntpcal_split ds;
	ds = ntpcal_daysplit(ntp);
	ds.hi += ntpcal_daysec_to_date(jd, ds.lo);
	return ntpcal_rd_to_date(jd, ds.hi + DAY_NTP_STARTS);
}
int ntpcal_ntp64_to_date ( struct calendar * jd , const vint64 * ntp ) { ntpcal_split ds ; ds = ntpcal_daysplit ( ntp ) ; ds . hi += ntpcal_daysec_to_date ( jd , ds . lo ) ; return ntpcal_rd_to_date ( jd , ds . hi + DAY_NTP_STARTS ) ; }
extended and unchecked variants of caljulian/caltontp
extended and unchecked variants of caljulian / caltontp