From owner-freebsd-hackers Fri Jan 7 8:15:10 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from cichlids.com (as3-055.rp-plus.de [149.221.238.247]) by hub.freebsd.org (Postfix) with ESMTP id F01B715786 for ; Fri, 7 Jan 2000 08:15:04 -0800 (PST) (envelope-from alex@cichlids.com) Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id C27ADAB92 for ; Fri, 7 Jan 2000 17:15:05 +0100 (CET) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id RAA04227 for hackers@freebsd.org; Fri, 31 Dec 1999 17:14:23 +0100 (CET) (envelope-from alex) Date: Fri, 31 Dec 1999 17:14:23 +0100 From: Alexander Langer To: hackers@freebsd.org Subject: mktime(3) and strange struct tm entries Message-ID: <19991231171423.A4219@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. 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? Alex -- I doubt, therefore I might be. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message