摘要: 3.文字时间格式函数 char * asctime(struct tm *tp); char * ctime(struct tm *tp); 这两个函数都转换时间格式为标准UNIX时间格式。 Mon May 3 08:23:35 1999 ctime一率使用当地时间,asctime则用tm结构内的timezone资讯来表示。 size_t strftime(char *str,size_t max,char *fmt,struct tm *tp); strftime有点像sprintf,其格式由fmt来指定。 %a : 本第几天名称,缩写。 %A : 本第几天名称,全称。 %b : 月份名称, 阅读全文
posted @ 2013-11-08 10:15 做一个GENTALMAN 阅读(397) 评论(0) 推荐(0)