ContentsIndex
PreviousUpNext
DateTime
Classes | Structs, Records, Enums | Variables

The DateTime API provides APIs to set and get date / time. It is better than millis() for scenario that requires very long time period (month and years), because millis() will overflow and reset in around 50 days. 

 

As long as LinkIt ONE is powered (either by USB or by battery) the clock will continue to tick. In the case of losing power or first time booting, there are several ways to initialize current time: Parse the GPGGA data from GPS.getData() or connect to an NTP (Network Time Protocol) server via Wi-Fi.

Classes
Class 
Description 
LDatetimeClass defines system time related functions. 
Structs, Records, Enums
Struct, Record, Enum 
Description 
The datetimeInfo structure. 
Variables
Variable 
Description 
LDateTime object 
Links