Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Dec 1999 16:44:26 -0500 (EST)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/15520: mktime() fails under certain conditions 
Message-ID:  <199912162144.QAA40600@khavrinen.lcs.mit.edu>
In-Reply-To: <199912162100.NAA34729@freefall.freebsd.org>
References:  <199912162100.NAA34729@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Thu, 16 Dec 1999 13:00:02 -0800 (PST), Poul-Henning Kamp <phk@critter.freebsd.dk> said:

>  It does not describe what should happen if I ask it to make a time
>  out of 25:100:100, but I guess most of us can agree what it should
>  do.

ANSI says that all fields are normalized.
 
>  Ie,  does 02:10:00 represent
>  	01:59:59 + 10:59 = 03:10:00
>  or 
>  	03:00:00 - 50:00 = 01:10:00

Which is why tm_isdst needs to be set to indicate which one.  When
asked to ``figure it out'', mktime() correctly responds that it can't.

-GAWollman

--
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912162144.QAA40600>