现在的位置: 首页 > 综合 > 正文

time_t转换格式化时间

2013年02月26日 ⁄ 综合 ⁄ 共 382字 ⁄ 字号 评论关闭

 size_t
 strftime (char *s, size_t maxsize, const char *format, const struct tm *tp); //格式化输出函数

 

运行输出:

./time
Time: 2009-08-14,13:59:22

抱歉!评论已关闭.