jacketizer / libnmea

Lightweight C library for parsing NMEA 0183 sentences
MIT License
264 stars 93 forks source link

Normalize tm_year according to C standard library #39

Closed yh-sb closed 5 years ago

yh-sb commented 5 years ago

According to specification, tm_year must be relative to 1900 year. Since RMC message provides year in two digits format and ZDA message provides year in four digits format, need to normalize it.