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

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat107.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <time.h>
  5. #include <stdio.h>
  6. #include <dos.h>
  7.  
  8. void main()
  9. {
  10.    time_t time_passed;
  11.    struct tm *cur_time;
  12.  
  13.    /* ¿·▒oª█«µ¬L½┬¬v╝╨╖╟«╔╢í 1970 ª~ 1 ñδ 1 ñΘ 00:00:00 ░_¿∞▓{  */
  14.    /* ªb⌐╥╕g╣L¬║¼φ╝╞                                            */
  15.    time_passed = time(NULL);
  16.  
  17.    /* ¿·▒oªU¡╙ñ└╢}ñº«╔╢í¿├╝gñJ cur_time ⌐╥½ⁿªVñº tm ½¼ºOñº╡▓║c┼Θññ */
  18.    cur_time = localtime(&time_passed);
  19.  
  20.    printf("ªañΦ«╔╢í¼░ : %s", asctime(cur_time));
  21. }
  22.