home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / datetim1.zip / DATETIME.C next >
Text File  |  1994-05-31  |  673b  |  28 lines

  1. /*****************************************/
  2. /*** Program: DATETIME                 ***/ 
  3. /*** Date:    05/31/94                 ***/ 
  4. /*** Prints the current date and time. ***/ 
  5. /*****************************************/
  6. /* Modifications:
  7.  DATE       NAME             MODIFICATION
  8.  00/00/94   xxxxxxxxx        
  9. */
  10. #include <stdio.h>
  11. #include <time.h>
  12.  
  13.  
  14. /*****************************************/
  15. /*** Main Function of program          ***/
  16. /*****************************************/
  17. int main()
  18. {
  19.    time_t timenow;
  20.    struct tm *curtime;
  21.  
  22.    time(&timenow);
  23.    curtime = localtime(&timenow);
  24.    printf("%s",asctime(curtime));
  25.  
  26.    exit(0);
  27. }
  28.