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

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat79.c                                              */
  3. /*------------------------------------------------------------------*/
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <time.h>
  7. #include <dos.h>
  8.  
  9. char *tzstring = "TZ=PST8PDT";
  10.  
  11. void main()
  12. {
  13.    time_t cur_time;
  14.    struct tm *gmt, *area;
  15.  
  16.    putenv(tzstring);
  17.    tzset();
  18.  
  19.    cur_time = time(NULL);
  20.    area = localtime(&cur_time);
  21.    printf("░╧░∞«╔╢í¼░: %s", asctime(area));
  22.    gmt = gmtime(&cur_time);
  23.    printf("«µ¬L½┬¬v╝╨╖╟«╔╢í¼░ : %s", asctime(gmt));
  24. }
  25.