Date: Thu, 16 Dec 1999 21:53:59 +0000 From: Brian Somers <brian@Awfulhak.org> To: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> Cc: freebsd-bugs@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: bin/15520: mktime() fails under certain conditions Message-ID: <199912162153.VAA02879@hak.lan.Awfulhak.org> In-Reply-To: Message from Andre Albsmeier <andre.albsmeier@mchp.siemens.de> of "Thu, 16 Dec 1999 12:40:05 PST." <199912162040.MAA33173@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> The following reply was made to PR bin/15520; it has been noted by GNATS. > > From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> > To: Poul-Henning Kamp <phk@critter.freebsd.dk> > Cc: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>, > FreeBSD-gnats-submit@FreeBSD.ORG > Subject: Re: bin/15520: mktime() fails under certain conditions > Date: Thu, 16 Dec 1999 21:36:47 +0100 > > On Thu, 16-Dec-1999 at 21:24:41 +0100, Poul-Henning Kamp wrote: > > In message <199912162016.VAA97593@internal>, Andre Albsmeier writes: > > > > >mktime() fails if it is called with a time that is exactly > > >the moment when daylight saving time is starting. > > > > Well, at least for the "spring forward case" that time doesn't > > exist: > > > > 01:59:57 > > 01:59:58 > > 01:59:59 > > 03:00:00 > > > > There is no 02:00:00 that night. If they test for that, they're > > crazy. > > Yes, the time does not exist. However, I only wonder it our > behaviour of returning an error is correct in this case. I don't > trust the GNU/Linux guys as much as I trust FreeBSD :-) but there > might be a reason they are testing it. > > I was already asked in private email if the mktime() should > succeed according to POSIX.1... Does somebody know anything > about that? I don't, but I've got a few PRs that I'd like to close WRT date -v skipping over such times... so I'd be interested in any definitive answers that anyone can come up with. > -Andre -- Brian <brian@Awfulhak.org> <brian@FreeBSD.org> <http://www.Awfulhak.org> <brian@OpenBSD.org> Don't _EVER_ lose your sense of humour ! <brian@FreeBSD.org.uk> 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?199912162153.VAA02879>