/* $Id: time_stamp.c,v 1.9 2004/11/22 16:13:38 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); }