I have a problem using time.h for the ATMEGA328PB, finding the time difference of 2 sets of times in seconds.
Both sets come from an external RTC.
First, I have a start time: uint8_t TMR_start_year , uint8_t TMR_start_month, ....uint8_t TMR_start_second,
and second there is the stop time: uint8_t TMR_stop_year ...uint8_t TMR_stop_second. The uint8_t TMR...year is the number above 2000.
I've already read this post ...https://www.avrfreaks.net/forum/... , but I really can't figure out how to use the difftime() function with my sets of times.
Many thanks for some coding help!