Get time: how to use time() and time_t
#include <time.h> #include <stdio.h> int main(void) { time_t lt; lt = time(NULL); printf(ctime(<)); return 0; }