Lines Matching defs:jd
305 static int parse_time (struct calendar * jd, long * nsec,
307 static int parse_date (struct calendar *jd, nmea_data*,
312 static int unfold_day (struct calendar * jd, u_int32 rec_ui);
313 static int unfold_century (struct calendar * jd, u_int32 rec_ui);
314 static int gpsfix_century (struct calendar * jd, const gps_weektm * wd,
1477 struct calendar * jd, /* result calendar pointer */
1510 jd->hour = (u_char)h;
1511 jd->minute = (u_char)m;
1512 jd->second = (u_char)s;
1534 struct calendar * jd, /* result pointer */
1581 jd->monthday = (u_char)d;
1582 jd->month = (u_char)m;
1583 jd->year = (u_short)y;
1645 struct calendar * jd,
1662 ntpcal_date_to_daysec(jd),
1664 rec_ds.hi += ntpcal_daysec_to_date(jd, rec_ds.lo);
1665 return (ntpcal_rd_to_date(jd, rec_ds.hi + DAY_NTP_STARTS) >= 0);
1671 * in 'jd->year'. This should be in +79/-19 years around the system time,
1685 struct calendar * jd,
1696 jd->year = (u_short)ntpcal_periodic_extend(baseyear, jd->year,
1699 return ((baseyear <= jd->year) && (baseyear + 100 > jd->year));
1729 struct calendar * jd,
1743 doff = ntpcal_date_to_daysec(jd) + wd->wt_leap;
1751 year = jd->year % 100;
1756 jd->year = year + *century * 100;
1757 days = ntpcal_date_to_rd(jd) - DAY_GPS_STARTS + doff;
1763 jd->year = year;