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.

mktime not accounting for leap year

All,

  I am running mktime based on a GPS time I am receiving.  I check the tm struct values and they are all correct.  When I check the return value in epoch seconds it is off by 1 day.  Also, for the tm.year, it is current year - 1970, not 1900.  Is anyone else having this issue?

Thanks,

Will