Function nmea::sentences::parse_zda

source ·
pub fn parse_zda(sentence: NmeaSentence<'_>) -> Result<ZdaData, Error<'_>>
Expand description

Parse ZDA message

From gpsd/driver_nmea0183.c

$GPZDA,160012.71,11,03,2004,-1,00*7D
  1. UTC time (hours, minutes, seconds, may have fractional subsecond)
  2. Day, 01 to 31
  3. Month, 01 to 12
  4. Year (4 digits)
  5. Local zone description, 00 to +- 13 hours
  6. Local zone minutes description, apply same sign as local hours
  7. Checksum

Note: some devices, like the u-blox ANTARIS 4h, are known to ship ZDAs with some fields blank under poorly-understood circumstances (probably when they don’t have satellite lock yet).