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

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat73.c                                              */
  3. /*------------------------------------------------------------------*/
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <time.h>
  7. #include <sys\timeb.h>
  8.  
  9. char *tzstring="TZ=PST8PDT";
  10.  
  11. void main()
  12. {
  13.  struct timeb cur_time;
  14.  char *t;
  15.  
  16.  putenv(tzstring);
  17.  tzset();
  18.  ftime(&cur_time);
  19.  t=ctime(&cur_time.time);
  20.  
  21.  printf("Ñ╪½eñº«╔╢í¼░ : %.19s.%hu %s",t,cur_time.millitm,&t[20]);
  22.  printf("ª█«µ¬L½┬¬v╝╨╖╟«╔╢í 1970 ª~ 1 ñδ 1 ñΘ 00:00:00 ª▄ñ╡ª@╕g╣Lñº«╔╢í¼φ╝╞:");
  23.  printf("%ld\n",cur_time.time);
  24.  printf("ñdñ└ñºñ@¼φ(▓@¼φ) : %d\n",cur_time.millitm);
  25.  printf("«µ¬L½┬¬v╝╨╖╟«╔╢í╗PªañΦ«╔╢í¼█«tñºñ└─┴╝╞ : %d\n",cur_time.timezone);
  26.  printf("¼O(1)º_(0)╣Ω¼IñΘÑ·╕`¼∙«╔╢í : %d\n",cur_time.dstflag);
  27. }
  28.