Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Date Checking module

by grep (Monsignor)
on Jan 14, 2002 at 09:44 UTC ( #138524=note: print w/replies, xml ) Need Help??


in reply to Date Checking module

You are not handling Leap Years correctly. I'd check CPAN. There are a dozen or modules that handle dates in including Date::Calc.

UPDATE: I see jryan has pointed this out also. There is also Date-Leapyear

FYI:The rules for Leap Year are:
  • Every year divisible by 4 is a leap year.
  • But every year divisible by 100 is NOT a leap year
  • Unless the the year is also divisible by 400, then it is still a leap year.

    grep
    grep> cd pub grep> more beer
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Node Status?
    node history
    Node Type: note [id://138524]
    help
    Chatterbox?
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others studying the Monastery: (10)
    As of 2016-12-07 20:55 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      On a regular basis, I'm most likely to spy upon:













      Results (131 votes). Check out past polls.