cancel
Showing results for 
Search instead for 
Did you mean: 

Can someone help me with RTC clock

Kai_Satone
Associate III

Hello everyone, 

I want to Know if I can set RTC on "6" different time.

Through the Day .

Help with exampl.

Thank you. 

 

1 ACCEPTED SOLUTION

Accepted Solutions

You need to manage this by software. There is only one counter in RTC.

You set the RTC by GMT time and display the local time by adding +/- T (time offset) for each time zone.

See these threads:

https://community.st.com/t5/stm32-mcus-products/function-library-to-convert-between-utc-time-and-local-time/td-p/211219#:~:text=The%20STM32%20has%20no%20way,out%20of%20the%20embedded%20system.

https://community.st.com/t5/stm32-mcus-products/add-date-time-offset-set-time-zone/td-p/218010

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3

Which STM32?

What do you mean by 6 different times? Do you want to display simultaneously time in 6 different timezones, like time in Tokyo, Kuala Lumpur, Los Angeles, New York, London, Kyiv, at the same moment?

JW

@waclawek.jan 

yes

 

You need to manage this by software. There is only one counter in RTC.

You set the RTC by GMT time and display the local time by adding +/- T (time offset) for each time zone.

See these threads:

https://community.st.com/t5/stm32-mcus-products/function-library-to-convert-between-utc-time-and-local-time/td-p/211219#:~:text=The%20STM32%20has%20no%20way,out%20of%20the%20embedded%20system.

https://community.st.com/t5/stm32-mcus-products/add-date-time-offset-set-time-zone/td-p/218010

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.