摘要: C语言中提供了对时间进行操作的函数和数据结构,下面介绍几种常用的函数。首先是表示时间的time_t类型,在32位windows VS2010中定义为long long类型,占8个字节,表示自1970年1月1日0时0分0秒到现在的秒数。表示日期结构tm定义如下:structtm {inttm_sec;/* seconds after the minute - [0,59] */inttm_min;/* minutes after the hour - [0,59] */inttm_hour;/* hours since midnight - [0,23] */inttm_mday;/* day 阅读全文
posted @ 2013-06-04 21:56 蒲蜡 阅读(500) 评论(0) 推荐(0) 编辑