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