tvStructure containing time_t seconds and useconds_t microseconds. Due to separate target specific RTC implementations only the seconds component is used.
tzDEPRECATED IN THE STANDARD: This parameter is left in for legacy code. It is not used.
-
Returns
-
0 on success, -1 on a failure.
-
Note
-
Synchronization level: Thread safe
Implementation of the C time.h functions.
Provides mechanisms to set and read the current time, based on the microcontroller Real-Time Clock (RTC), plus some standard C manipulation and formatting functions.
Example: