in reply to Year /^\d+$/ bug!

What you are asking is... is one month from January 30th February (28|29) or is it March (1|2). That's more of a stylistic question, and I guess maybe an option for the user to check. Personally I think I am more of the mind that this is almost a nonsensical question because no logic, math or anything else can really dictate what the correct answer is. The best you can do is just give it a good guess! :)

Replies are listed 'Best First'.
Re: Re: Year /^\d+$/ bug!
by $code or die (Deacon) on Nov 30, 2000 at 00:45 UTC
    I don't know - I think that there must be an answer - if the following statements are true...

    1. May 8th, is exactly one month after April 8th
    2. June 8th is exactly one month after May 8th

    that then there must be a definition of "month" that works regardless of a month being 28/29/20/31 days long?

    If so, this definition must surely apply to dates at the end of the month as equally as it does for dates at the beginning of the month.

    I think that it's obvious what the answer isn't, but I think that there is an answer.