Skip to main content
August 15, 2020
Question

Is the library safe to use after the year 2038?

  • August 15, 2020
  • 5 replies
  • 1345 views

I noticed that STM32CubeIDE allows you to use a 64-bit variable, I would like to know if the time.h library is already updated with a 64-bit variable.

https://en.wikipedia.org/wiki/Year_2038_problem

This topic has been closed for replies.

5 replies

waclawek.jan
Super User
August 15, 2020
August 15, 2020

Thanks,

Does this mean that What comes with STM32CubeIDE 1.4.1 is already safe from the year 2038 problem?

waclawek.jan
Super User
August 15, 2020

I don't know what comes with CubeIDE, I don't use it.

JW

Tesla DeLorean
Guru
August 15, 2020

You're the developer, use the libraries that meet or exceed your expectations.

Use your own tested/validated code for things which are critial.​

Not sure the RTC is rated beyond 2099​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
August 17, 2020

Thanks, I'm using DS3231.