From owner-freebsd-questions Thu May 14 18:33:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA00396 for freebsd-questions-outgoing; Thu, 14 May 1998 18:33:28 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA00347 for ; Thu, 14 May 1998 18:33:16 -0700 (PDT) (envelope-from grog@lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id LAA00388; Fri, 15 May 1998 11:03:10 +0930 (CST) (envelope-from grog) Message-ID: <19980515110310.A305@freebie.lemis.com> Date: Fri, 15 May 1998 11:03:10 +0930 From: Greg Lehey To: Mostyn Lewis Cc: questions@FreeBSD.ORG Subject: Re: Year 2000 References: <19980515093946.M320@freebie.lemis.com> <199805150109.SAA20144@user2.teleport.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199805150109.SAA20144@user2.teleport.com>; from Mostyn Lewis on Thu, May 14, 1998 at 06:09:50PM -0700 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 14 May 1998 at 18:09:50 -0700, Mostyn Lewis wrote: >> On Thu, 14 May 1998 at 16:26:06 -0400, PParker@anon.penet.fi wrote: >>> Is your current version of FreeBSD year 2000 compatable? >> >> Yes. > > Actually NOT when it comes to strptime, q.v. > See the X/Open SUS definition etc. > This routine needs to be changed for Y2K. > If you want a test case, I'll maiil one. > > > For strptime( "11/22/02", "%m/%d/%y", &ztm) > the result for years since 1900 is > tm_year; 002 > > This should be 102 for Y2K compliance. This is new to me. I would have said that strptime is correct, and the idea of re-interpreting "02" worries me. Can you give me a URL, please? Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message