From owner-freebsd-hackers Wed Mar 31 22:45:58 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from obie.softweyr.com (unknown [204.68.178.33]) by hub.freebsd.org (Postfix) with ESMTP id 0E18415C23 for ; Wed, 31 Mar 1999 22:45:55 -0800 (PST) (envelope-from wes@softweyr.com) Received: from softweyr.com (wes@zaphod.softweyr.com [204.68.178.35]) by obie.softweyr.com (8.8.8/8.8.8) with ESMTP id XAA05153; Wed, 31 Mar 1999 23:43:02 -0700 (MST) (envelope-from wes@softweyr.com) Message-ID: <37031575.F7A2399D@softweyr.com> Date: Wed, 31 Mar 1999 23:43:01 -0700 From: Wes Peters Organization: Softweyr llc X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Sergey Babkin Cc: hackers@FreeBSD.ORG Subject: Re: Y2K issue References: <3702BF79.EE5801AE@bellatlantic.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sergey Babkin wrote: > > Hi! > > I do some Y2K testing for my employer, so I have run some of the Y2K > tests on FreeBSD too. In particular, this one: > > ftp://ftp.rdg.opengroup.org/pub/unsupported/stdtools/y2k/ > > This directory contains two small tests for the data conversion functions, > getdate() and strptime(). Getdate() seems to not be supported in FreeBSD > at all, so it's not a Y2K issue although probably a POSIX conformance > issue. But strptime() fails. It is supposed to understand the 2-digit > year from 0 to 38 as years 2000 to 2038. Sez who? strptime behaves exactly as the man page says: %G is replaced by a year as a decimal number with century. This year is the one that contains the greater part of the week (Monday as the first day of the week). %g is replaced by the same year as in ``%G'', but as a decimal number without century (00-99). [...] %Y is replaced by the year with century as a decimal number. %y is replaced by the year without century as a decimal number (00-99). I don't see what could be much more explicit than that. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.softweyr.com/~softweyr wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message