Datasheet

This line is very cute, what it does is take the Date and Time according the computer you're using (right when you
compile the code) and uses that to program the RTC. If your computer time is not set right you should fix that first. Then
you must press the Upload button to compile and then immediately upload. If you compile and then upload later, the
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
if (! rtc.initialized()) {
Serial.println("RTC is NOT running!");
// following line sets the RTC to the date & time this sketch was compiled
rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
© Adafruit Industries https://learn.adafruit.com/adafruit-adalogger-featherwing Page 16 of 36