home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a120 / 1.ddi / WATCOM_C / WAT167.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-13  |  566 b   |  21 lines

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat167.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <stdio.h>
  5. #include <time.h>
  6. #include <dos.h>
  7.  
  8. void main()
  9.  {
  10.     struct tm *cur_time;
  11.     time_t cur_sec;
  12.     char str[80];
  13.  
  14.     tzset();
  15.     time(&cur_sec);
  16.     cur_time = localtime(&cur_sec);
  17.     strftime(str, 80, "▓{ªb«╔╢í¼O :(12 ñp«╔¿ε) %p %I:%M:%S , (24 ñp«╔¿ε) %X",
  18.              cur_time);
  19.     printf("%s\n",str);
  20.  }
  21.