From owner-freebsd-hackers Fri Jan 7 8:29:25 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp1.vnet.net (smtp1.vnet.net [166.82.1.31]) by hub.freebsd.org (Postfix) with ESMTP id 7EC17157F2 for ; Fri, 7 Jan 2000 08:29:18 -0800 (PST) (envelope-from rivers@dignus.com) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by smtp1.vnet.net (8.9.1a/8.9.1) with ESMTP id LAA29233; Fri, 7 Jan 2000 11:28:50 -0500 (EST) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.9.2/8.8.5) with ESMTP id LAA13350; Fri, 7 Jan 2000 11:28:48 -0500 (EST) Received: (from rivers@localhost) by lakes.dignus.com (8.9.3/8.6.9) id LAA76267; Fri, 7 Jan 2000 11:28:48 -0500 (EST) Date: Fri, 7 Jan 2000 11:28:48 -0500 (EST) From: Thomas David Rivers Message-Id: <200001071628.LAA76267@lakes.dignus.com> To: alex@big.endian.de, hackers@FreeBSD.ORG Subject: Re: mktime(3) and strange struct tm entries In-Reply-To: <19991231171423.A4219@cichlids.cichlids.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Hello! > > Try the following: > > Take any year, minute, seconds, hours (etc...). > > set the struct tm accordingly. > set the tm->tm_mon = 10 (November) > set the tm->tm_mday = 31 (november has only 31 days) > > mktime(3) with this tm returns the date 1 Dezember. > > Does POSIX want this? > Does anyone have the specs and could take a look? > Or is this a bug? I believe this is correct behaviour. - Dave R. - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message