Re: [htdig3-dev] funky results from mktime?


Geoff Hutchison (ghutchis@wso.williams.edu)
Mon, 5 Apr 1999 12:56:21 -0400


At 12:48 PM -0400 4/5/99, Gilles Detillieux wrote:
>OK, taking a guess here. The two tm structures that you pass to mktime
>aren't fully initialised, so mktime is probably doing something wierd.
>I don't think it cares about tm_wday or tm_yday, but it probably does
>care about all the time zone stuff. How about if before you set any of
>the fields in the two tm structures, you intialise it to localtime's
>contents? E.g:

Yeah, I agree with Gilles here. The man pages say that it ignores tm_wday
and tm_yday, but it expects the rest to be relatively consistent. Take a
look at the timegm stuff in htlib/.

-Geoff

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
htdig3-dev@htdig.org containing the single word "unsubscribe" in
the SUBJECT of the message.



This archive was generated by hypermail 2.0b3 on Mon Apr 05 1999 - 10:22:23 PDT