AnsweredAssumed Answered

STM32F4 RTC - leap year

Question asked by neumann.sascha on Sep 8, 2016
Latest reply on Sep 8, 2016 by waclawek.jan

Hi,

when i use the RTC, which year i have to set due to the leap year compensation? There are just two BCD digits for the year so i have to save the start/offset year in code?

If now would be the year 2015. Do i have to set the year i the RTC module to 3 and save the offset 2012? Is year 0 a leap year in the RTC calendar? I can not find any definition in the reference manual.

Thanks

Outcomes