Home
last modified time | relevance | path

Searched refs:year (Results 1 – 1 of 1) sorted by relevance

/hal_stm32-latest/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_hal_rtc.c1787 uint32_t year = 0U, month = 0U, day = 0U; in RTC_DateUpdate() local
1791 year = hrtc->DateToUpdate.Year; in RTC_DateUpdate()
1819 year++; in RTC_DateUpdate()
1845 if (RTC_IsLeapYear(year)) in RTC_DateUpdate()
1864 hrtc->DateToUpdate.Year = year; in RTC_DateUpdate()
1871 hrtc->DateToUpdate.WeekDay = RTC_WeekDayNum(year, month, day); in RTC_DateUpdate()
1919 uint32_t year = 0U, weekday = 0U; in RTC_WeekDayNum() local
1921 year = 2000U + nYear; in RTC_WeekDayNum()
1926 …weekday = (((23U * nMonth) / 9U) + nDay + 4U + year + ((year - 1U) / 4U) - ((year - 1U) / 100U) + … in RTC_WeekDayNum()
1931 …weekday = (((23U * nMonth) / 9U) + nDay + 4U + year + (year / 4U) - (year / 100U) + (year / 400U) … in RTC_WeekDayNum()