超级版主
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
|
回复: 【转帖】IncrediBuild 3.10 试用时间复位工具
CString compileDateString = "Oct 7 2009";
COleDateTime compileTime;
compileTime.ParseDateTime(compileDateString);
CString m_Date = compileTime.Format(VAR_DATEVALUEONLY);
// + str "07 October, 2009"
CString str = compileTime.Format(_T("%d %B, %Y"));
//- str "10/09/09"
str = compileTime.Format(_T("%x"));
//- str "12:52:55"
str = compileTime.Format("%X");
问题:需要统一国家时间格式——
各个国家的时间格式有所不同,解析时间字符串是个问题,
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
|