libraries/STM32RTC-1.2.0/src/STM32RTC.cpp
uint8_t STM32RTC::getHours(AM_PM *period)
{
  syncTime();
  if (period != nullptr) {
    *period = _hoursPeriod;
  }
  return _hours;
}
/**
  * @brief  get RTC hours.
  * @param  format: optional (default: nullptr)
  *         pointer to the current hour period set in the RTC: AM or PM
  * @retval return the current hours from the RTC.
  */
@brief  get RTC hours.
@param  format: optional (default: nullptr)
pointer to the current hour period set in the RTC: AM or PM
@retval return the current hours from the RTC.
@brief get RTC hours . @param format : optional ( default : nullptr ) pointer to the current hour period set in the RTC : AM or PM @retval return the current hours from the RTC .
uint8_t STM32RTC::getHours(AM_PM *period)
{
  syncTime();
  if (period != nullptr) {
    *period = _hoursPeriod;
  }
  return _hours;
}
uint8_t STM32RTC :: getHours ( AM_PM * period ) { syncTime ( ) ; if ( period != nullptr ) { * period = _hoursPeriod ; } return _hours ; }
@brief  get RTC hours.
@brief get RTC hours .