time_t rawtime; struct tm * timeinfo; time ( &rawtime ); timeinfo = localtime ( &rawtime ); printf ( "/007The current date/time is: %s", asctime (timeinfo) ); exit(0);