convert system time struct to tm struct.
void systemtime_to_tm( TM * pTM, SYSTEMTIME * pSysTime )
EX1
void systemtime_to_tm_Ex1() { struct tm theTime ; SYSTEMTIME sysTime ; GetSystemTime(&sysTime); systemtime_to_tm(&theTime ,&sysTime); printf( "The current date and time are: %s", asctime(&theTime)); }
tm_to_systemtime, asctime
origin.h