How to get difference between two GMT times in seconds on WinCE?
So I'd like to convert the CTime to GMT, and then find the difference between the two times in seconds.
I used to use time_t objects in Win32 code, but in WinCE there is no such thing.
CTime startTime(2000, 1, 1, 0, 0, 0);
// Get the current time
CTime curTime(CTime::GetCurrentTime());
// Get gmt times
tm startGMT;
startTime.GetLocalTm(&startGMT);
tm currentGMT;
curTime.GetGmtTm(¤tGMT);
double diff = difftime(mktime(¤tGMT), mktime(&startGMT));
The above doesn't work in WinCE because of the lack of time.h, but works fine otherwise.
Any help to how I can achieve the same effect on WinCE?

