Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: How to subtract date by 1 day

by KurtSchwind (Chaplain)
on Dec 13, 2007 at 16:14 UTC ( [id://656850]=note: print w/replies, xml ) Need Help??


in reply to Re: How to subtract date by 1 day
in thread How to subtract date by 1 day

Actually, there is a flaw in your Leap_year logic. (This is why people who write date routines pull out their hair).

A leap year is a year that is divisible by 4, but not by 100, unless it's divisible by 400. Not that your solution is likely to encouter the bug anytime soon. But the year 2100 is NOT a ly.

--
I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-04-23 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found