Hi all,
I have this routine that calculates the seconds-to-date for a struct tm
. On Linux my implementation using mktime works fine, but
mktime on windows VS2003/.NET 1.1 returns -1 for pre-epoch datetimes.
How do I calculate meaningful time_t values (i.e.
value + secondsToEpoch == secondsToDatetime
) from a for pre-epoch dates, using ANSI C++ only (no boost, Qt either)?
Thanks for your help.