nmea(4) Implementation details Look at the received NMEA stream and decode the GPRMC message All NMEA devices support the GPRMC message Calculate the offset between the local time and the time received A small problem: When was the time just received valid?