time_t now; now = time(NULL); // 输出Sun Feb 28 18:47:25 2021 printf("%s", ctime(&now));. 注意, ctime() 会在字符串尾部自动添加换行符。 localtime(),gmtime() ...
確定! 回上一頁