in reply to RE: simple stupid time question
in thread simple stupid time question

Is it possible for a leap century to occur on a leap year? Couldn't you get 30 days in February as a result? I'm wondering if there isn't already a module that does this...

Replies are listed 'Best First'.
RE: RE: RE: simple stupid time question
by spudzeppelin (Pilgrim) on Sep 14, 2000 at 18:53 UTC

    Nope, you can't have a 30-day February specifically because the construct actually looks like:

    if ((($year % 4) = 0) && (($year % 100) != 0)) { $feb += 1; } #leap year elsif (($year % 400) = 0) { $feb +=1; } #leap century

    So, since a regular "leap year" doesn't occur at the end of a century, the two conditions are never simultaneously satisfied.

    Spud Zeppelin * spud@spudzeppelin.com