C语言获取时间字符串

有时候用时间命名文件之类的能够用获得,记录一下code #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #include <stdio.h> #include <time.h> int main() {  char szTimeStr[32] = {0};  time_t iNowTime = 0;  struct tm *
相关文章
相关标签/搜索