time_t t; time(&t); //得到时间戳 struct tm* st = localtime(&t); //st就是年月日时分秒
64,652
社区成员
250,508
社区内容
加载中
试试用AI创作助手写篇文章吧