Datasheet
clock will be off by that amount of time.
Then open up the Serial monitor window to show that the time has been set
From now on, you won't have to ever set the time again: the battery will last 5 or more
years
Reading the time
Now that the RTC is merrily ticking away, we'll want to query it for the time. Let's look at the
sketch again to see how this is done
void loop () {
DateTime now = rtc.now();
Serial.print(now.year(), DEC);
Serial.print('/');
Serial.print(now.month(), DEC);
Serial.print('/');
Serial.print(now.day(), DEC);
Serial.print(" (");
© Adafruit Industries https://learn.adafruit.com/adafruit-data-logger-shield Page 39 of 85