Is it the test that's failing or the CVS code? I didn't save the output from the failure case.

Derek

--
*8^)

Email: [EMAIL PROTECTED]

Get CVS support at <http://ximbiot.com>!


Larry Jones wrote:

[EMAIL PROTECTED] writes:

+ # I'm too tired to check the math just now, but is it possible that
+ # the algorithm assumes the final month has 31 days and that 100
+ # months from the 29th, 30th, and 31st would be the non-existan 29th,
+ # 30th, and 31st of a non-leap year February or something? Forgive
+ # me if that is way off base but it is a wild guess without in-depth
+ # knowledge of this test or the error being generated.

That's exactly right. The test assumes that the date 100 months from
now will be the same day of the month as today is, which fails if 100
months from now is a month with fewer days than this month and you're
sufficiently close to the end of the month. What we just experienced is
the worst case because October 2002 has 31 days and 100 months from that
is February 2011, which only has 28. I'm too lazy to do the math to
figure out how often it fails, but we could certainly reduce the number
of failures by changing from 100 months to, say, 96 months (8 years) so
you always land on the same month with the same leap year/non-leap year
status, except for the century year exceptions. (So it wouldn't fail
again until February 29, 2092.)

-Larry Jones

Well of course the zipper's going to get stuck if everyone
stands around WATCHING me! -- Calvin



_______________________________________________
Bug-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-cvs

Reply via email to