I need a 'local time_t'. Currently, I've got the following code. Anyone got better code that won't crap out at dst changing time?
Thanks.Code:// Work out the time adjustment for this timeT... if ( (ptm = gmtime(&timeT)) == NULL ) return E_FAIL; if ( (timeTTemp = mktime(ptm)) == (time_t) -1 ) return E_FAIL; timeT = (timeT - timeTTemp);