摘要: #include<iostream>#include<ctime>using namespace std;int main(){time_t now_time;now_time = time(NULL);cout<<now_time;getchar();return 0;} 阅读全文
posted @ 2011-10-30 01:16 byfei 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1.获得系统时间 time(NULL); 2.时间戳转换成日期 #include #include using namespace std;int main(){ char szBeginTime[32] ={0}; time_t tmBeginTime = ... 阅读全文
posted @ 2011-10-30 01:16 byfei 阅读(40) 评论(0) 推荐(0) 编辑