#include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { time_t now_time; struct tm *t; now_time = time(NULL); t = localtime(&now_time); printf("%s",asctime(t)); return 0; }
#include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { time_t now_time; struct tm *t; now_time = time(NULL); t = localtime(&now_time); printf("%s",asctime(t)); return 0; }