Returns the number of seconds since January 1, 1970 UTC 00:00:00 (Unix timestamp)
/* time() funciton example in C language: get current time in c */ #include <stdio.h> #include <stdlib.h> #include <time.h> int main() { time_t now = time(0); // or // time_t now; // time(&now); printf("The time is: %ld", now); return 0; }