From owner-freebsd-bugs Sat Jan 22 4:35:23 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from smtp2.vnet.net (smtp2.vnet.net [166.82.1.32]) by hub.freebsd.org (Postfix) with ESMTP id 6982014D78 for ; Sat, 22 Jan 2000 04:35:20 -0800 (PST) (envelope-from rivers@dignus.com) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by smtp2.vnet.net (8.9.1a/8.9.1) with ESMTP id HAA00330; Sat, 22 Jan 2000 07:35:16 -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 HAA33875; Sat, 22 Jan 2000 07:35:15 -0500 (EST) Received: (from rivers@localhost) by lakes.dignus.com (8.9.3/8.6.9) id HAA77849; Sat, 22 Jan 2000 07:35:14 -0500 (EST) Date: Sat, 22 Jan 2000 07:35:14 -0500 (EST) From: Thomas David Rivers Message-Id: <200001221235.HAA77849@lakes.dignus.com> To: freebsd-bugs@FreeBSD.ORG, teos2000@mail.ru Subject: Re: Y2K bug In-Reply-To: <000801bf64d2$ecc35fc0$0ab4dec3@blackeagle> Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > The function localtime returns incorrect date. > > For example: 0-21-100. > > What to me to do? > You're supposed to add 1900 to the year. 100 + 1900 = 2000 See the localtime man page for more information about the `tm' structure. - Dave Rivers - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message