10.1.3.8 calendar_get_date_time
Get the time for calendar HAL instance and hardware.
int32_t calendar_get_date_time(
struct calendar_descriptor *const calendar,
struct calendar_date_time *const date_time
)
Parameters
- calendar
-
Type: struct calendar_descriptor *const
Pointer to the HAL Calendar instance.
- date_time
-
Type: struct calendar_date_time *const
Pointer to the value that will be filled with the current time.
Returns
Type: int32_t
Operation status of time retrieve.
- 0
-
Completed successfully.