From owner-cvs-all Thu Jan 14 22:52:07 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA00611 for cvs-all-outgoing; Thu, 14 Jan 1999 22:52:07 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id WAA00606; Thu, 14 Jan 1999 22:52:05 -0800 (PST) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 10135k-0004Mm-00; Thu, 14 Jan 1999 23:50:48 -0700 Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.1/8.8.3) with ESMTP id XAA21928; Thu, 14 Jan 1999 23:49:44 -0700 (MST) Message-Id: <199901150649.XAA21928@harmony.village.org> To: Greg Lehey Subject: Re: cvs commit: src/usr.sbin/tcpdump/tcpslice tcpslice.c Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG In-reply-to: Your message of "Fri, 15 Jan 1999 17:09:33 +1030." <19990115170933.L55525@freebie.lemis.com> References: <19990115170933.L55525@freebie.lemis.com> <199901150546.VAA17426@freefall.freebsd.org> Date: Thu, 14 Jan 1999 23:49:43 -0700 From: Warner Losh Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk In message <19990115170933.L55525@freebie.lemis.com> Greg Lehey writes: : I thought there was some guideline that small 2-digit years represent : 20xx, and large 2-digit years represent 19xx. The short answer is that it depends. I think that w/o reading the file that tcpslice is looking at it would be hard to know for sure which year to use. So I made an arbitrary choice that made the behavior well defined. Two digit dates generally have been interpreted as meaning in the century that context says they are in. I suppose that I could have figured out what year it was and made that year the "pivot" year. For example, right now 1999 is the pivot year. 1999 + 50 is 2049 and 1999 - 49 is 1950, so any number >= 50 means 19xx, while any number < 50 means 20xx. In 2001 the pivot is 52, 2009 the pivot is 60, etc. You can quibble over the edge cases I'm sure. Some have proposed that single digits < 38 mean 20xx and > 38 mean 19xx, but that isn't a good long term solution.... If you have a better suggestion, please let me know, or commit better patches. :-) Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message