From owner-freebsd-bugs Thu Dec 16 13:56:11 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from awfulhak.org (dynamic-122.max4-du-ws.dialnetwork.pavilion.co.uk [212.74.9.250]) by hub.freebsd.org (Postfix) with ESMTP id 141FB15B52 for ; Thu, 16 Dec 1999 13:56:08 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id VAA02633; Thu, 16 Dec 1999 21:52:05 GMT (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id VAA02879; Thu, 16 Dec 1999 21:53:59 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <199912162153.VAA02879@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.0 09/18/1999 To: Andre Albsmeier Cc: freebsd-bugs@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: bin/15520: mktime() fails under certain conditions In-Reply-To: Message from Andre Albsmeier of "Thu, 16 Dec 1999 12:40:05 PST." <199912162040.MAA33173@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 16 Dec 1999 21:53:59 +0000 From: Brian Somers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > The following reply was made to PR bin/15520; it has been noted by GNATS. > > From: Andre Albsmeier > To: Poul-Henning Kamp > Cc: Andre Albsmeier , > 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 Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message