char bufTime[64] = {0}; SYSTEMTIME sys; GetLocalTime(&sys); _snprintf(bufTime,sizeof(bufTime),"%.4d-%.2d-%.2dT%.2d:%.2d:%.2d.000+08:00", sys.wYear,sys.wMonth,sys.wDay,sys.wHour,sys.wMinute,sys.wSecond);