Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: days between dates

by SuicideJunkie (Vicar)
on Mar 15, 2013 at 14:22 UTC ( #1023708=note: print w/replies, xml ) Need Help??


in reply to days between dates

Your first step should be to print out the contents of your variables at each step and see where your assumptions become false.

The zeroth step should be to use a CPAN module to do the date math for you since it will handle all the edge cases you missed.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2017-03-25 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (310 votes). Check out past polls.