strftime
Posted happyamyhope
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了strftime相关的知识,希望对你有一定的参考价值。
qi
std::string time_now() { time_t t = time(0); char tmp[64]; strftime(tmp, sizeof(time), "%Y%m%dT%H%M%S", localtime(&t)); return tmp; }
re
1.
http://www.cplusplus.com/reference/ctime/strftime/
2.
http://man7.org/linux/man-pages/man3/strftime.3.html
end
以上是关于strftime的主要内容,如果未能解决你的问题,请参考以下文章