Syntax
int getRtc(
    unsigned int * rtc
);
ContentsIndex
PreviousUpNext
LDateTimeClass::getRtc Method
LDateTimeClass Class | Example
Syntax
int getRtc(
    unsigned int * rtc
);
Description

Gets the time since the Epoch (00:00:00 UTC, January 1, 1970), measured in seconds.

Parameters
Parameters 
Description 
unsigned int * rtc 
[OUT] Points to the time in seconds. 
Returns

0: Successful. 

-1: Failed. 

 

Example
#include <LDateTime.h>
datetimeInfo t;
unsigned int rtc;
void setup()
{

}
void loop()
{
  LDateTime.getTime(&t);
  LDateTime.getRtc(&rtc);
  delay(1000);
}
File

LDateTime.h

Class