Date: Thu, 14 May 1998 20:25:20 -0700 (PDT) From: Mostyn Lewis <mrl@teleport.com> To: grog@lemis.com (Greg Lehey) Cc: mrl@teleport.com (Mostyn Lewis), questions@FreeBSD.ORG Subject: Re: Year 2000 Message-ID: <199805150325.UAA01355@user2.teleport.com> In-Reply-To: <19980515110310.A305@freebie.lemis.com> from "Greg Lehey" at May 15, 98 11:03:10 am
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805150325.UAA01355>