#include <time.h>
#include <stdio.h>
int
main(int argc, char *argv[]) {
time_t tt = time(0);
char buf[32] = {0};
strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", localtime(&tt));
return 0;
}
#include <time.h>
#include <stdio.h>
int
main(int argc, char *argv[]) {
time_t tt = time(0);
char buf[32] = {0};
strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", localtime(&tt));
return 0;
}