摘要:
在unix和linux下的获取时间和在win32获得的时间是不同的,所以要分开来写。代码如下: 1 std::string Tools::get_date_now() 2 { 3 #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS) 4 struct cc_timeval now; 5 CCTime::gettimeofdayCocos2d(&now, NULL); 6 struct tm *tm; 7 time_t tp = now.tv... 阅读全文
posted @ 2014-02-20 15:06
【Winco】
阅读(692)
评论(0)
推荐(0)
浙公网安备 33010602011771号