int getRtc( unsigned int * rtc );
Gets the time since the Epoch (00:00:00 UTC, January 1, 1970), measured in seconds.
0: Successful.
-1: Failed.
#include <LDateTime.h> datetimeInfo t; unsigned int rtc; void setup() { } void loop() { LDateTime.getTime(&t); LDateTime.getRtc(&rtc); delay(1000); }
LDateTime.h
LDateTimeClass Class