Closed benpicco closed 2 years ago
Needs tests before we can merge.
Merged. Thanks for this contribution, it does indeed make sense and should have been in the library from the beginning!
Changes I did to the original PR:
minmea_getdatetime()
as "getdate" is misleading - it doesn't just get the date but date+time
I needed a
struct tm
instead of a Unix timestamp. The struct is already being assembled inminmea_gettime()
and convertingstruct tm
->time_t
->struct tm
is silly, so I added a function to make that functionality available for external users.