//获取当前日期
char currentTime[20] = {0};
SYSTEMTIME sys;
GetLocalTime( &sys );
sprintf(currentTime,"%4d-%02d-%02d %02d:%02d:%02d",
sys.wYear,sys.wMonth,sys.wDay,
sys.wHour,sys.wMinute,sys.wSecond);
//获取当前日期
char currentTime[20] = {0};
SYSTEMTIME sys;
GetLocalTime( &sys );
sprintf(currentTime,"%4d-%02d-%02d %02d:%02d:%02d",
sys.wYear,sys.wMonth,sys.wDay,
sys.wHour,sys.wMinute,sys.wSecond);