RTC_SECONDS_DAY
return (uint64)days * RTC_SECONDS_DAY + tm->tm_hour * 3600 + tm->tm_min * 60
seconds = seconds % RTC_SECONDS_DAY;