void loop() // rtc.getTime() or equivalent returns struct with fields: second, minute, hour, day, date, month, year // use fields to display or compute
function reads all register data from the RTC, keeping the Arduino variables current. Individual Data Access: Allows accessing specific time components directly (e.g., myRTC.hours myRTC.minutes Formatted Output: virtuabotixrtc.h arduino library
Here is an annotated example of how the library is typically used: void loop() // rtc