#pragma once #include struct RtcTime { uint16_t year; uint8_t month, day, hour, minute, second; }; bool rtcBegin(); bool rtcLostPower(); RtcTime rtcNow(); void rtcSet(const RtcTime& t); uint32_t rtcEpoch(); bool ntpSync(int tzOffsetMin); // true if synced and RTC updated