I would like to get the current timestamp and print it out using fprintf.
fprintf
#include #include int main () { time_t seconds; seconds = time(NULL); printf("Seconds since January 1, 1970 = %ld\n", seconds); return(0); }
And will get similar result: Seconds since January 1, 1970 = 1476107865