This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TM4C1290NCPDT: mktime() leapyear is going wrong?

Part Number: TM4C1290NCPDT


Tool/software: TI C/C++ Compiler

Hi,

I have an issue with the mktime function where 2 dates return the same value.

tm struct
DD-MM-YY
HH:MM:SS output of mktime
29/Feb/2020 00:00:00 1582934400
01/Mar/2020 00:00:00 1582934400

I'm using a TM4C1290NCPDT with compiler ti-cgt-arm_18.1.3.LTS

Am I missing something here?

If i run the same dates through mktime in e.g. onlinegdb i get the following results which are the expected values

29-feb = 1582934400
1-mar = 1583020800

Am I missing something here?