1 /* Prints the current time_t to stdout. Equivalent to the 2 * nonstandard %s format option to GNU date(1). 3 */ 4 5 #include <sys/types.h> 6 #include <stdio.h> 7 #include <time.h> 8 main()9 int main () 10 { 11 printf ("%lu\n", time(NULL)); 12 exit(0); 13 } 14