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 );