Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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


  • Comment on Re: Date Checking module
    Download Code

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Node Status?
    node history
    Node Type: note [id://138524]
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others drinking their drinks and smoking their pipes about the Monastery: (11)
    As of 2014-09-18 19:19 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      How do you remember the number of days in each month?











      Results (121 votes), past polls