/* Sets the RTC module alarm time value in standard format  */
void XMC_RTC_SetAlarmStdFormat(const struct tm *const stdtime)
/* Sets the RTC module alarm time value in standard format  */
void XMC_RTC_SetAlarmStdFormat(const struct tm *const stdtime)
{
  XMC_RTC_ALARM_t alarm;
  alarm.seconds = stdtime->tm_sec;
  alarm.minutes = stdtime->tm_min;
  alarm.hours = stdtime->tm_hour;
  alarm.days = stdtime->tm_mday - 1;
  alarm.month = stdtime->tm_mon;
  alarm.year = stdtime->tm_year + XMC_RTC_YEAR_OFFSET;
  XMC_RTC_SetAlarm(&alarm);
}