How to get time in C language

http‮.www//:s‬lautturi.com
How to get time in C language

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;
}
Created Time:2017-08-28 21:24:49  Author:lautturi