ttlappalainen / NMEA0183

Library for handling NMEA0183 messages
69 stars 44 forks source link

Initial ZDA message parsing functions. #19

Closed poberth closed 3 years ago

poberth commented 3 years ago

Added tZDA struct and NMEA0183ParseZDA functions

ttlappalainen commented 3 years ago

I do not if anybody (I use in N2k) uses time_t variable, but there is ready function to convert separate to time_t. Then you could have method: bool NMEA0183ParseZDA(const tNMEA0183Msg &NMEA0183Msg, time_t &DateTime, int &Timezone); where Timezone would be in seconds and one could directly add it to time_t.