#include <stdio.h> #include <time.h> int main(void){ time_t unixTime; unixTime = time(NULL); printf("Seconds since Jan 01 1970: %ld\n", unixTime); return 0; }