On Tue, 15 Jul 2003, John Peacock wrote:

> > if (length($yr) < 4)
> >     warn ("Your year value is indeterminant.  Performing SWAG[1]!");
>
> Then do a search on Google for "y2k window" and see how people suggested
> handling it.  Yes, it _is_ completely bogus and arbitrary, why do you ask?  But
> when dealing with malformed data, the old warhorse of GIGO[2] applies.

I think the standard is something along the lines of:

  if ($year + 50 < ($current_year - 2000)) { $year += 1900 } else { $year += 2000 }

which could of course be generalized to work in the next century as well
;)


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to