From owner-freebsd-questions Thu May 14 20:25:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA22358 for freebsd-questions-outgoing; Thu, 14 May 1998 20:25:40 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from smtp2.teleport.com (smtp2.teleport.com [192.108.254.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA22344 for ; Thu, 14 May 1998 20:25:28 -0700 (PDT) (envelope-from mrl@teleport.com) Received: from user2.teleport.com (usertest.teleport.com [192.108.254.19]) by smtp2.teleport.com (8.8.7/8.7.3) with ESMTP id UAA15003; Thu, 14 May 1998 20:25:21 -0700 (PDT) From: Mostyn Lewis Received: (from mrl@localhost) by user2.teleport.com (8.8.7/8.8.4) id UAA01355; Thu, 14 May 1998 20:25:20 -0700 (PDT) Message-Id: <199805150325.UAA01355@user2.teleport.com> Subject: Re: Year 2000 To: grog@lemis.com (Greg Lehey) Date: Thu, 14 May 1998 20:25:20 -0700 (PDT) Cc: mrl@teleport.com (Mostyn Lewis), questions@FreeBSD.ORG In-Reply-To: <19980515110310.A305@freebie.lemis.com> from "Greg Lehey" at May 15, 98 11:03:10 am X-Mailer: ELM [version 2.4 PL25] Content-Type: text 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? 596 days left .... http://www.UNIX-systems.org/version2/whatsnew/year2000.html See section 2.2 strptime() FYI: I've been doing a Y2K for a HP-UX customer - HP's strptime sets tm_year to 002 (like FreeBSD and all else until Y2K) to 002 - for Y2K its 102 - make sense as the field is defined as year since 1900 ... Mostyn P.S. If we ever implement getdate this also must do similar. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message