#include "RTClib.h"
RTC_DS1307 rtc;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
rtc.begin();
}
void loop() {
// put your main code here, to run repeatedly:
DateTime now = rtc.now();
Serial.print(':');
Serial.print(now.second(), DEC);
Serial.println();
Serial.println(now.unixtime());
delay(3000);
}