From owner-freebsd-hackers Mon Jun 2 19:00:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA27173 for hackers-outgoing; Mon, 2 Jun 1997 19:00:44 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA27167 for ; Mon, 2 Jun 1997 19:00:38 -0700 (PDT) Received: from awfulhak.demon.co.uk (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id CAA20769; Tue, 3 Jun 1997 02:24:07 +0100 (BST) Message-Id: <199706030124.CAA20769@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: Terry Lambert cc: brian@awfulhak.org (Brian Somers), freebsd-hackers@FreeBSD.ORG, internet@demon.net Subject: Re: fetch In-reply-to: Your message of "Mon, 02 Jun 1997 09:04:35 PDT." <199706021604.JAA14574@phaeton.artisoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 03 Jun 1997 02:24:07 +0100 From: Brian Somers Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk [.....] > > I'd therefore consider it reasonable to accept two or three digit > > years as being assignable directly to tm_year, and four digit years > > as being subject to the "-1900" code. > > Assignable as "19xx +" and "1xxx +", or assignable as "00xx"? If the > latter, then tht's all I was saying. 8-). I reckon: 01-Jan-01 => 01-Jan-1901 01-Jan-99 => 01-Jan-1999 01-Jan-100 => 01-Jan-2000 01-Jan-xxxx => 01-Jan-xxxx So the code would say "assign to tm_year; if 4 digits, subtract 1900" bearing in mind that tm_year is defined as "the year less 1900". > Terry Lambert > terry@lambert.org > --- > Any opinions in this posting are my own and not those of my present > or previous employers. -- Brian , Don't _EVER_ lose your sense of humour....