home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / programm / 5893 < prev    next >
Encoding:
Text File  |  1993-01-11  |  825 b   |  28 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!cs.utexas.edu!uwm.edu!wupost!eclnews!wucs1!zqx
  3. From: zqx@wucs1.wustl.edu (Zeqing Xia)
  4. Subject: mktime does not work correctly
  5. Message-ID: <1993Jan12.011133.5090@wuecl.wustl.edu>
  6. Sender: usenet@wuecl.wustl.edu (News Administrator)
  7. Nntp-Posting-Host: wucs1
  8. Organization: Washington University, St. Louis MO
  9. Date: Tue, 12 Jan 1993 01:11:33 GMT
  10. Lines: 16
  11.  
  12.  
  13. Hi, everyone,
  14.  
  15.     Recently I encountered a problem in using mktime(). I have a
  16. struct tm variable and have set the tm_* values. For example, I set it
  17. to Jan 1, 1993, 02:02:02, Friday, etc., I checked everything, like if
  18. should start from 0 or 1. Bu the date converted and printed out was
  19. different. It was Dec 31, 23:00:00, etc.. 
  20.  
  21.     Is there any expert knowing why? 
  22.  
  23.     Any suggestion is greatly appreciated.
  24.  
  25.  
  26. Zeqing Xia
  27.  
  28.