2014年2月14日

C语言 strftime 格式化显示日期时间 时间戳

摘要: C/C++程序中需要程序显示当前时间,可以使用标准函数strftime。 函数原型:size_t strftime (char* ptr, size_t maxsize, const char* format,const struct tm* timeptr ); 代码示例: 代码输出: 格式化时间 阅读全文

posted @ 2014-02-14 23:54 旭东的博客 阅读(28863) 评论(0) 推荐(0)

导航