Date: Tue, 03 Jun 1997 02:24:07 +0100 From: Brian Somers <brian@awfulhak.org> To: Terry Lambert <terry@lambert.org> Cc: brian@awfulhak.org (Brian Somers), freebsd-hackers@FreeBSD.ORG, internet@demon.net Subject: Re: fetch Message-ID: <199706030124.CAA20769@awfulhak.demon.co.uk> In-Reply-To: Your message of "Mon, 02 Jun 1997 09:04:35 PDT." <199706021604.JAA14574@phaeton.artisoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[.....] > > 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 <brian@awfulhak.org>, <brian@freebsd.org> <http://www.awfulhak.org> Don't _EVER_ lose your sense of humour....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706030124.CAA20769>