Skip to content

SentenceTime

struct nmeasim::core::nmea0183::SentenceTime ยท Library API

A UTC time carried by a sentence, with the date when the sentence carries one.

#include <nmeasim/core/nmea0183/decoder.hpp>

Declared in src/core/include/nmeasim/core/nmea0183/decoder.hpp (line 76)

Summary

Public data members

Name Description
since_midnight Time of day, UTC, since midnight: below 24 h, except that a leap second sent as 235960 reaches 24 h.
date The date, for sentences that carry one (RMC and ZDA) and only when it parsed; std::nullopt otherwise.

Public data members

since_midnight

std::chrono::milliseconds since_midnight{0}

Time of day, UTC, since midnight: below 24 h, except that a leap second sent as 235960 reaches 24 h.

Declared in src/core/include/nmeasim/core/nmea0183/decoder.hpp:79

date

std::optional<DateParts> date

The date, for sentences that carry one (RMC and ZDA) and only when it parsed; std::nullopt otherwise.

The date always exists in the calendar: parse_date() checks the RMC date, and the ZDA day, month and year must be whole numbers of one or two, one or two and four digits that form a date that exists.

Declared in src/core/include/nmeasim/core/nmea0183/decoder.hpp:86