Re: Y2K - date parsing

From: Kent Landfield <>
Date: Mon, 12 Oct 1998 21:04:03 -0500 (CDT)
Message-Id: <>

# Byron Darrah wrote:
# > One thing that class has, which might be a nice thing to put into the
# > hypermail beta (?), is the way that it computes the century if given a
# > two-digit year: It chooses whichever century will result in placing the
# > date within fifty years of the current time. That helps insure against
# > fast or slow clocks and a few other things.
# I like that approach. I've had the notion for something like +/- 50 y from
# the century (or millennium, as the case may be :), but never got
# comfortable with a fixed limit. +/-50y from the *current* date seems like
# a generally reasonable approach.

The approach I added to hypermail to deal with two digit years is a direct rip off of Byron's idea and code. :)

Kent Landfield                        Phone: 1-817-545-2502             
Please send comp.sources.misc related mail to
Search the Usenet FAQ Archive at
Received on Tue 13 Oct 1998 04:05:44 AM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:50 PM GMT GMT