cancel
Showing results for 
Search instead for 
Did you mean: 

UNIX time

David_
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

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.

View solution in original post

3 REPLIES 3
STTwo-32
ST Employee

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.

You can use a different starting epoch, ie not 1970's, but rather Jan 1 2024, or something

You can use 64-bit time

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

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"