Lines Matching defs:date

140  * DATE/TIME are standard date/time strings in UTC time scale
143 * date spec.
172 #define NMEA_GPZDA 3 /* date/time */
206 /* date formats we support */
243 u_int malformed; /* Bad checksum, invalid date or time */
311 /* calendar / date helpers */
367 struct calendar date;
373 * date cannot be stablished, at least use the start of GPS
376 * margin for the fuzziness of the build date, which is in an
378 if (ntpcal_get_build_date(&date))
379 g_gpsMinBase = ntpcal_date_to_rd(&date) - 2;
386 ntpcal_rd_to_date(&date, g_gpsMinBase);
387 g_gpsMinYear = date.year;
773 * + it parses the time and date data from the NMEA data string and
774 * augments the missing bits. (century in dat, whole date, ...)
799 struct calendar date; /* to keep & convert the time stamp */
802 /* results of sentence/date/time parsing */
811 ZERO(date);
930 rc_time = parse_time(&date, &tofs.tv_nsec, &rdata, 1);
932 rc_date = parse_date(&date, &rdata, 9, DATE_1_DDMMYY)
933 && unfold_century(&date, rd_timestamp.l_ui);
940 rc_time = parse_time(&date, &tofs.tv_nsec, &rdata, 1);
942 rc_date = unfold_day(&date, rd_timestamp.l_ui);
949 rc_time = parse_time(&date, &tofs.tv_nsec, &rdata, 5);
951 rc_date = unfold_day(&date, rd_timestamp.l_ui);
957 /* No quality. Assume best, fetch time & full date */
959 rc_time = parse_time(&date, &tofs.tv_nsec, &rdata, 1);
960 rc_date = parse_date(&date, &rdata, 2, DATE_3_DDMMYYYY);
964 /* Check quality byte, fetch time & full date */
965 rc_time = parse_time(&date, &tofs.tv_nsec, &rdata, 1);
966 rc_date = parse_date(&date, &rdata, 2, DATE_3_DDMMYYYY);
972 /* get date, time, qualifier and GPS weektime. We need
973 * date and time-of-day for the century fix, so we read
977 && parse_date(&date, &rdata, 3, DATE_1_DDMMYY);
978 rc_time = parse_time(&date, &tofs.tv_nsec, &rdata, 4);
981 && gpsfix_century(&date, &gpsw, &up->century_cache);
996 /* Check sanity of date. */
997 else if (rc_date == 0) {/* no date or conversion error? */
1017 date.year, date.month, date.monthday,
1018 date.hour, date.minute, date.second));
1033 rd_reftime = eval_gps_time(peer, &date, &tofs, &rd_timestamp);
1521 * Parse a date string from an NMEA sentence. This could either be a
1522 * partial date in DDMMYY format in one field, or DD,MM,YYYY full date
1524 * checking to make sure the date string was consistent.
1550 DPRINTF(1, ("nmea: invalid date code: '%.6s'\n",
1559 DPRINTF(1, ("nmea: invalid date code: '%.10s'\n",
1572 DPRINTF(1, ("nmea: invalid date spec (YMD) %04u:%02u:%02u\n",
1628 * This function is used for NMEA sentences that contain no date
1632 * necessary date information.
1671 * battery-backup clock and start with a date that is typically years in
1709 * A brute-force analysis (that is, test for every date) shows that a
1718 * Note: This function needs a full date&time spec on input due to the
1815 /* So we do not trust the GPS receiver to deliver a correct date
1816 * due to the GPS epoch changes. We map the date from the