Syntax
int getTime(
    datetimeInfo * time
);
ContentsIndex
PreviousUpNext
LDateTimeClass::getTime Method
LDateTimeClass Class | Example
Syntax
int getTime(
    datetimeInfo * time
);
Description

Returns the current system time.

Parameters
Parameters 
Description 
datetimeInfo * time 
[OUT] The datetime information structure. 
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