#include <stdio.h> #include <time.h> int main () { time_t a; struct tm *b; time(&a); b=localtime(&a); printf("%s/n",asctime(b)); }