70 Serial.println(
"Failed to find PCF8XXX - check your wiring!");
87 Serial.print(
"RTC Model:");
102 Serial.print(
"[RTC ]:");
113 Serial.print(
"[UNIX]:");
114 Serial.print(
" Year :");
printInt(info.tm_year + 1900);
115 Serial.print(
" Month:");
printInt(info.tm_mon + 1);
116 Serial.print(
" Day :");
printInt(info.tm_mday);
117 Serial.print(
" Hour:");
printInt(info.tm_hour);
118 Serial.print(
" Minute:");
printInt(info.tm_min);
119 Serial.print(
" Sec :");
printInt(info.tm_sec);
124 Serial.print(
"Set Unix Time:");
128 utc_tm.tm_year = 2025 - 1900;
139 Serial.print(
"Set UTC time to time zone offset 8 hours:");
143 utc_tm.tm_year = 2025 - 1900;
165 size_t written = strftime(
buf, 64,
"%A, %B %d %Y %H:%M:%S", &timeinfo);
171 written = strftime(
buf, 64,
"%b %d %Y %H:%M:%S", &timeinfo);
176 written = strftime(
buf, 64,
"%A, %d. %B %Y %I:%M%p", &timeinfo);
uint8_t getMinute() const
uint8_t getSecond() const
void convertUtcToTimezone(int &year, int &month, int &day, int &hour, int &minute, int &second, int timezoneOffsetSeconds)
Convert UTC time represented by individual values to the time in the specified timezone.
const char * getChipName()
Get the name of the RTC chip.
void setDateTime(RTC_DateTime datetime)
Set the date and time on the RTC device.
RTC_DateTime getDateTime()
Get the current date and time from the RTC device.
bool begin(SensorCommCustom::CustomCallback callback)
Initialize the RTC driver using a custom callback.