获取 当前时间的字符串 asctime localtime time
需要预先包含 time.h
time_t raw_time;
time(&raw_time);
printf("Cur time: %s\n", asctime(localtime(&raw_time)));
获取 当前时间的字符串 asctime localtime time
需要预先包含 time.h
time_t raw_time;
time(&raw_time);
printf("Cur time: %s\n", asctime(localtime(&raw_time)));