/* $Id: time_stamp.c,v 1.1 2011/03/02 21:52:15 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); }