Hi,
I am using localtime inbuilt function to convert Unix time stamp into tm structure.
As written in the thread
the EPOCH can be changed from 1900 to 1970 by defining "-D__TI_TIME_USES_64".
This is somehow not working for my setup:
Compiler: 21.6.0.LTS
SYS/BIOS: 6.83.0.18
When I pass the value "1456822873ULL" (should be Tue Mar 01 2016 09:01:13 GMT+0000) to the function "localtime" of "time.h" I get the value "116" for the variable "tm_year" in the tm structure.
I expect the value "46" because of the EPOCH 1970.
I have defined "-D__TI_TIME_USES_64".
Thanks in advance for your support!
Regards,
Matthias