导航

2009年3月23日

摘要: 1, time_t 转structtm structtm*localtime( const time_t *timer); 2,structtm转time_t time_t mktime(structtm*timeptr); 3,ctime转time_t 用ctime类中的gettime成员函数即可 阅读全文

posted @ 2009-03-23 15:11 Phil Wang 阅读(2197) 评论(0) 推荐(0) 编辑

摘要: 摘要: 本文从介绍基础概念入手,探讨了在C/C++中对日期和时间操作所用到的数据结构和函数,并对计时、时间的获取、时间的计算和显示格式等方面进行了阐述。本文还通过大量的实例向你展示了time.h头文件中声明的各种函数和数据结构的详细使用方法。 关键字:UTC(世界标准时间),Calendar Time(日历时间),epoch(时间点),clock tick(时钟计时单元) 1.概念 在C/C... 阅读全文

posted @ 2009-03-23 11:19 Phil Wang 阅读(173) 评论(0) 推荐(0) 编辑