/* $Id: time_stamp.c,v 1.1 2013/04/10 16:34:45 tl Exp $ */ #include #include #include int #ifdef OLDSUNOS time_stamp () #else time_stamp (void) #endif { /* declarations */ struct tm *local; time_t t; /* get current time and print */ t = time (NULL); local = localtime (&t); printf ("%s", asctime (local)); /* done */ return (0); }