Skip to main content
NNada.1
Associate II
August 31, 2024
Question

How does RTC compensate for daylight saving?

  • August 31, 2024
  • 3 replies
  • 1313 views

Hello All,

  I came across the daylight saving feature in RTC peripheral of STM32F401RE. I live in a country where there is no concept of daylight saving, hence this is new to me as well. As per the RM of STM32F401RE, there is a automatic daylight saving correction in RTC peripheral.

  1. How does the MCU correct the time for daylight saving ? My assumption is that it waits for specific date and there it would increment the current time. 

 Can anyone please provide more insights, about how is daylight saving feature working in STM32F401RE or some reference.

Thank you,

Regards,

This topic has been closed for replies.

3 replies

BarryWhit
Lead
August 31, 2024

BarryWhit_0-1725089249756.png

It's the application's responsibility to explicitly enable and disable DST correction as needed. It is not automatic.

"- If someone's post helped resolve your issue, please thank them by clicking ""Accept as Solution"".- Please post an update with details once you've solved your issue. Your experience may help others."
NNada.1
NNada.1Author
Associate II
September 5, 2024

I am not sure if I got it right. If I develop a clock using stm32f4, for day light saving I can give user the control to increment or decrement the time? 

There is nothing as such automatic correction taking place inside controller?

 

Thank you

BarryWhit
Lead
September 5, 2024

> It's the application's responsibility to explicitly enable and disable DST correction as needed. It is not automatic.

"- If someone's post helped resolve your issue, please thank them by clicking ""Accept as Solution"".- Please post an update with details once you've solved your issue. Your experience may help others."