Date: Thu, 14 May 1998 22:33:58 -0500 From: Dan Nelson <dnelson@emsphone.com> To: Greg Lehey <grog@lemis.com>, Mostyn Lewis <mrl@teleport.com> Cc: questions@FreeBSD.ORG Subject: Re: Year 2000 Message-ID: <19980514223358.A21729@emsphone.com> In-Reply-To: <19980515110310.A305@freebie.lemis.com>; from "Greg Lehey" on Fri May 15 11:03:10 GMT 1998 References: <19980515093946.M320@freebie.lemis.com> <199805150109.SAA20144@user2.teleport.com> <19980515110310.A305@freebie.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980514223358.A21729>