From owner-freebsd-questions Thu May 14 20:34:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA24459 for freebsd-questions-outgoing; Thu, 14 May 1998 20:34:32 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dan.emsphone.com (dan@dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA24427 for ; Thu, 14 May 1998 20:34:22 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.8.8/8.8.8) id WAA21946; Thu, 14 May 1998 22:33:59 -0500 (CDT) (envelope-from dan) Message-ID: <19980514223358.A21729@emsphone.com> Date: Thu, 14 May 1998 22:33:58 -0500 From: Dan Nelson To: Greg Lehey , Mostyn Lewis Cc: questions@FreeBSD.ORG Subject: Re: Year 2000 References: <19980515093946.M320@freebie.lemis.com> <199805150109.SAA20144@user2.teleport.com> <19980515110310.A305@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.92.4i In-Reply-To: <19980515110310.A305@freebie.lemis.com>; from "Greg Lehey" on Fri May 15 11:03:10 GMT 1998 X-OS: FreeBSD 2.2.6-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (May 15), Greg Lehey said: > On Thu, 14 May 1998 at 18:09:50 -0700, Mostyn Lewis wrote: > > 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? Unfortunately, http://www.opengroup.org/onlinepubs/7908799/xsh/strptime.html requires that 69-99 refer to 19xx and 00-68 refer to 20xx. I don't like it either, mainly because any date printed as a 2-sigit number is *much* more likely to be in the 1900-1999 range. Birthdates, contract start dates, etc etc. When was the last time you actually needed to store the date 2059 (as opposed to, say 1959)? Wasn't it _after_ all this y2k hoopla, so that you stored it as a 4-digit year anyway? All they are doing in the URL above is extending the permissive persiod for using 2-digit years indefinitely, at the expense of any existing 2-digit data already out there. -Dan "down with 2-digit years" Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message