home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
datetim1.zip
/
DATETIME.C
next >
Wrap
Text File
|
1994-05-31
|
673b
|
28 lines
/*****************************************/
/*** Program: DATETIME ***/
/*** Date: 05/31/94 ***/
/*** Prints the current date and time. ***/
/*****************************************/
/* Modifications:
DATE NAME MODIFICATION
00/00/94 xxxxxxxxx
*/
#include <stdio.h>
#include <time.h>
/*****************************************/
/*** Main Function of program ***/
/*****************************************/
int main()
{
time_t timenow;
struct tm *curtime;
time(&timenow);
curtime = localtime(&timenow);
printf("%s",asctime(curtime));
exit(0);
}