time_t rawtime; struct tm *timeinfo; char timestring [TIME_STRING_LENGTH+1]; time (&rawtime); timeinfo = localtime (&rawtime); strftime (timestring,TIME_STRING_LENGTH,"%Y_%m_%d_%H_%M_%S",timeinfo);
Convert a time value and correct for the local time zone
SYSTEMTIME st; GetLocalTime(&st); CString time2; time2.Format(TEXT ("%d_%d_%d_%d_%d_%d"), st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)