httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: Long-lived software?
Date Mon, 28 Oct 1996 09:28:47 GMT
Roy T. Fielding wrote:
> 
> > What is time_t on an Alpha?
> 
> Probably still a long, but in this case 63 bits worth (not counting sign).
> Do you think the date parser should check for
> 
>       if (LONG_MAX > 2147483647L)
> 
> before limiting the year < 2038?  I can do that, but it (and the checking
> of 100 and 400 year leap adjustments) will add overhead which won't be
> used for another 41 years.  Right now, the code just considers any date
> beyond 1/1/2038 to be invalid.  Hmmmm, OTOH, I could add it as an #ifdef.

The amount of overhead is completely trivial, but feel free to make it
conditional.

I think that it is as well to be correct, when it can be had at such miniscule
cost.

Cheers,

Ben.

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.            Apache Group member (http://www.apache.org)

Mime
View raw message