On May 2, 2007, at 11:30 PM, Steve Garman wrote:
> Note: this will not correct a full date that is entered.
>
> If it is given a birth year of 70, it will convert it to 1970,
> provided
> that assumePastFuture is set to -1
Basically, in Unix I always use this code for general assumptions:
if ( tm.year < 32 )
tm.year = tm.year + 100;
This allows a simple check for anything less than 32 implying that if
the tm.year value is less than 32, the implied value is a 2000 year
whiel > 32 implies a 1900 year.
That could be useful for generalizing the handling of 2 digit years.
PS: the reason most Unix heads use 32 as the cross-over point is
that's when the current 32 bit date field rolls over and we all die
horrible deaths as programmers :).
Tim
--
Tim Jones
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>