Date: Fri, 7 Jan 2000 11:28:48 -0500 (EST) From: Thomas David Rivers <rivers@dignus.com> To: alex@big.endian.de, hackers@FreeBSD.ORG Subject: Re: mktime(3) and strange struct tm entries Message-ID: <200001071628.LAA76267@lakes.dignus.com> In-Reply-To: <19991231171423.A4219@cichlids.cichlids.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001071628.LAA76267>