2024-04-01 12:34 PM
Is there a new "standard" way to handle time other than the original UNIX time was mentioned in AN5406 - Rev 7 - How to build a LoRa® application with STM32CubeWL, which will overflow in year 2038?
TIA
Solved! Go to Solution.
2024-04-24 08:19 AM
Hello @David_
On the Current Implementation, we are only using UNIX time as mentioned on the application note.
Best Regards.
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.
2024-04-24 08:19 AM
Hello @David_
On the Current Implementation, we are only using UNIX time as mentioned on the application note.
Best Regards.
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.
2024-04-24 08:27 AM
You can use a different starting epoch, ie not 1970's, but rather Jan 1 2024, or something
You can use 64-bit time
2024-04-24 11:53 AM
Many thanks. I was told that GCC can use 64 bit time by command line option. Yet to find out how to put in the command line option within the STM32Cube toolchain
"Starting with bookworm, you can compile C using gcc -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 to use 64bit time_t"