Lines Matching defs:jd
265 struct calendar * jd
309 ZERO(*jd);
310 jd->year = 1970;
311 jd->month = 1;
312 jd->monthday = 1;
329 jd->year = year;
330 jd->month = (uint8_t)((cp - mlist) / 3 + 1);
331 jd->monthday = (uint8_t)day;
332 jd->hour = (uint8_t)hour;
333 jd->minute = (uint8_t)minute;
334 jd->second = (uint8_t)second;
995 struct calendar *jd,
1004 jd->weekday = i32mod7(rd);
1015 jd->year = (uint16_t)(split.hi & ymask);
1016 jd->yearday = (uint16_t)split.lo + 1;
1020 jd->month = (uint8_t)split.hi + 1;
1021 jd->monthday = (uint8_t)split.lo + 1;
1064 struct calendar *jd,
1072 jd->hour = (uint8_t)ts[0];
1073 jd->minute = (uint8_t)ts[1];
1074 jd->second = (uint8_t)ts[2];
1114 struct calendar *jd,
1119 dof += ntpcal_daysec_to_date(jd, ds->lo);
1120 return ntpcal_rd_to_date(jd, ds->hi + dof);
1152 struct calendar *jd,
1159 ds.hi += ntpcal_daysec_to_date(jd, ds.lo);
1162 return ntpcal_rd_to_date(jd, ds.hi);
1489 const struct calendar *jd
1492 return ntpcal_edate_to_eradays((int32_t)jd->year - 1,
1493 (int32_t)jd->month - 1,
1494 (int32_t)jd->monthday - 1) + 1;
1555 const struct calendar *jd
1558 return ntpcal_etime_to_seconds(jd->hour, jd->minute,
1559 jd->second);
1583 const struct calendar *jd
1589 days = ntpcal_date_to_rd(jd) - DAY_UNIX_STARTS;
1590 secs = ntpcal_date_to_daysec(jd);
1606 struct calendar *jd,
1613 ds.hi += ntpcal_daysec_to_date(jd, ds.lo);
1615 return ntpcal_rd_to_date(jd, ds.hi + DAY_NTP_STARTS);
1620 struct calendar *jd,
1633 return ntpcal_ntp64_to_date(jd, &ntp64);
1639 const struct calendar *jd
1645 return ntpcal_dayjoin(ntpcal_date_to_rd(jd) - DAY_NTP_STARTS,
1646 ntpcal_date_to_daysec(jd));
1652 const struct calendar *jd
1658 return ntpcal_date_to_ntp64(jd).d_s.lo;
1998 struct calendar jd;
2001 if (!ntpcal_get_build_date(&jd))
2011 jd.monthday -= 1;
2012 ed = ntpcal_date_to_rd(&jd) - DAY_NTP_STARTS;
2060 struct calendar jd;
2072 ntpcal_rd_to_date(&jd, day + DAY_NTP_STARTS);
2074 jd.year, (u_short)jd.month, (u_short)jd.monthday);
2082 ntpcal_rd_to_date(&jd, day + DAY_NTP_STARTS);
2084 jd.year, (u_short)jd.month, (u_short)jd.monthday, s_gpsweek);