#include #include #include int main() { time_t lt; lt = time(NULL); // get the current time in sec since Jan. 1, 1970 printf("%d\n", lt); // print the number of seconds printf(ctime(<)); // print it in human readable format system("pause"); }