Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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: (7)
    As of 2015-07-05 09:00 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (61 votes), past polls