/* Sets the RTC module time values in standard format  */
void XMC_RTC_SetTimeStdFormat(const struct tm *const stdtime)
/* Sets the RTC module time values in standard format  */
void XMC_RTC_SetTimeStdFormat(const struct tm *const stdtime)
{
  XMC_RTC_TIME_t time;
  time.seconds = stdtime->tm_sec;
  time.minutes = stdtime->tm_min;
  time.hours = stdtime->tm_hour;
  time.days = stdtime->tm_mday - 1;
  time.month = stdtime->tm_mon;
  time.year = stdtime->tm_year + XMC_RTC_YEAR_OFFSET;
  time.daysofweek = stdtime->tm_wday;
  XMC_RTC_SetTime(&time);
}