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

Lines Matching refs:jd

266 	struct calendar * jd
310 ZERO(*jd);
311 jd->year = 1970;
312 jd->month = 1;
313 jd->monthday = 1;
330 jd->year = year;
331 jd->month = (uint8_t)((cp - mlist) / 3 + 1);
332 jd->monthday = (uint8_t)day;
333 jd->hour = (uint8_t)hour;
334 jd->minute = (uint8_t)minute;
335 jd->second = (uint8_t)second;
996 struct calendar *jd,
1005 jd->weekday = i32mod7(rd);
1016 jd->year = (uint16_t)(split.hi & ymask);
1017 jd->yearday = (uint16_t)split.lo + 1;
1021 jd->month = (uint8_t)split.hi + 1;
1022 jd->monthday = (uint8_t)split.lo + 1;
1065 struct calendar *jd,
1073 jd->hour = (uint8_t)ts[0];
1074 jd->minute = (uint8_t)ts[1];
1075 jd->second = (uint8_t)ts[2];
1115 struct calendar *jd,
1120 dof += ntpcal_daysec_to_date(jd, ds->lo);
1121 return ntpcal_rd_to_date(jd, ds->hi + dof);
1153 struct calendar *jd,
1160 ds.hi += ntpcal_daysec_to_date(jd, ds.lo);
1163 return ntpcal_rd_to_date(jd, ds.hi);
1490 const struct calendar *jd
1493 return ntpcal_edate_to_eradays((int32_t)jd->year - 1,
1494 (int32_t)jd->month - 1,
1495 (int32_t)jd->monthday - 1) + 1;
1556 const struct calendar *jd
1559 return ntpcal_etime_to_seconds(jd->hour, jd->minute,
1560 jd->second);
1584 const struct calendar *jd
1590 days = ntpcal_date_to_rd(jd) - DAY_UNIX_STARTS;
1591 secs = ntpcal_date_to_daysec(jd);
1607 struct calendar *jd,
1614 ds.hi += ntpcal_daysec_to_date(jd, ds.lo);
1616 return ntpcal_rd_to_date(jd, ds.hi + DAY_NTP_STARTS);
1621 struct calendar *jd,
1634 return ntpcal_ntp64_to_date(jd, &ntp64);
1640 const struct calendar *jd
1646 return ntpcal_dayjoin(ntpcal_date_to_rd(jd) - DAY_NTP_STARTS,
1647 ntpcal_date_to_daysec(jd));
1653 const struct calendar *jd
1659 return ntpcal_date_to_ntp64(jd).d_s.lo;
1999 struct calendar jd;
2002 if (!ntpcal_get_build_date(&jd))
2012 jd.monthday -= 1;
2013 ed = ntpcal_date_to_rd(&jd) - DAY_NTP_STARTS;
2061 struct calendar jd;
2073 ntpcal_rd_to_date(&jd, day + DAY_NTP_STARTS);
2075 jd.year, (u_short)jd.month, (u_short)jd.monthday);
2083 ntpcal_rd_to_date(&jd, day + DAY_NTP_STARTS);
2085 jd.year, (u_short)jd.month, (u_short)jd.monthday, s_gpsweek);