P is for Practical | |
PerlMonks |
Re^2: How to subtract date by 1 dayby KurtSchwind (Chaplain) |
on Dec 13, 2007 at 16:14 UTC ( [id://656850]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|