#include #include main() { time_t t; struct tm *tm; t = time(NULL); tm = localtime(&t); printf("%s", asctime(tm)); }