标签:ar amp 时间 on c 字符串 as class ca
将字符串CString类型转换成时间类型:
//转换时间,替代CStringToDateTime(temp); int nYear, nMonth, nDate, nHour, nMin; float nSec; sscanf(temp, "%d-%d-%d %d:%d:%f", &nYear, &nMonth, &nDate, &nHour, &nMin, &nSec); CBHDateTime sTime(nYear, nMonth, nDate, nHour, nMin, nSec); nSec = nSec - (int)nSec; //四舍五入 int intnSec = (int)((nSec+0.0005)*1000); sTime.SetMillisecond(intnSec);
标签:ar amp 时间 on c 字符串 as class ca
原文地址:http://blog.csdn.net/ghevinn/article/details/38898181