1.8.17.3 1.25.17.7 1.26.15.7 1.27.17.7 1.28.20.7 1.34.16.7 1.35.11.7 1.36.14.7 1.41.17.7 1.42.15.7 RTC_TimeGet Function
C
void RTC_TimeGet( struct tm *time );
Summary
Reads the current time
Description
This function is used to read the current date and time from the RTC.
Precondition
None.
Parameters
Param | Description |
---|---|
time | This is an output parameter that will be filled with the current date and time |
Returns
None
Example
struct tm dateTime;
//get the current date and time
RTC_TimeGet( &dateTime );