C库函数 - asctime()
C库函数 - asctime() #include <stdio.h> #include <string.h> #include <time.h> int main () { struct tm t; t.tm_sec = 10; t.tm_min = 10; t.tm_hour = 6; t.tm_mday = 25; t.tm_mon = 2; t.tm_year = 89; t.tm_wday = 6; puts(asctime(&t)); return(0); }
C库函数 - asctime()
#include <stdio.h> #include <string.h> #include <time.h> int main () { struct tm t; t.tm_sec = 10; t.tm_min = 10; t.tm_hour = 6; t.tm_mday = 25; t.tm_mon = 2; t.tm_year = 89; t.tm_wday = 6; puts(asctime(&t)); return(0); }
交流与评论