Symbian 显示详细时间 分享
2010-03-19 16:16:00 来源:WEB开发网核心提示:void GetLocalTime(TDes& aLocalTime){TTime time;TDateTime date;time.HomeTime();date=time.DateTime();_LIT(KTimeFormat,"%Y%M%D%1%2 %3:%H%T%S:%C");//格式为:2
void GetLocalTime(TDes& aLocalTime)
{
TTime time;
TDateTime date;
time.HomeTime();
date=time.DateTime();
_LIT(KTimeFormat,"%Y%M%D%1%2 %3:%H%T%S:%C");//格式为:2006-03-04
time.FormatL(aLocalTime,KTimeFormat);
}
aLocalTime 显示出来是这样滴:
20100318:034231:638000
赞助商链接