libraries/STM32RTC-1.2.0/src/STM32RTC.cpp
void STM32RTC::syncTime(void)
{
  if (_configured) {
    hourAM_PM_t p = HOUR_AM;
    RTC_GetTime(&_hours, &_minutes, &_seconds, &_subSeconds, &p);
    _hoursPeriod = (p == HOUR_AM) ? AM : PM;
  }
}
/**
  * @brief  synchronise the time from the current RTC one
  * @param  none
  */
@brief  synchronise the time from the current RTC one
@param  none
@brief synchronise the time from the current RTC one @param none
void STM32RTC::syncTime(void)
{
  if (_configured) {
    hourAM_PM_t p = HOUR_AM;
    RTC_GetTime(&_hours, &_minutes, &_seconds, &_subSeconds, &p);
    _hoursPeriod = (p == HOUR_AM) ? AM : PM;
  }
}
void STM32RTC :: syncTime ( void ) { if ( _configured ) { hourAM_PM_t p = HOUR_AM ; RTC_GetTime ( & _hours , & _minutes , & _seconds , & _subSeconds , & p ) ; _hoursPeriod = ( p == HOUR_AM ) ? AM : PM ; } }
@brief  synchronise the time from the current RTC one
 @param  none
@brief synchronise the time from the current RTC one @param none