laziness, impatience, and hubris | |
PerlMonks |
Re: odd or even day?by trammell (Priest) |
on Jan 07, 2006 at 17:39 UTC ( [id://521730]=note: print w/replies, xml ) | Need Help?? |
Check your math. You can use paper and pencil to estimate the current day number according to your scheme, then print $var and see if it's in the right ballpark.
Update: quick sanity check: assume there are 365 days in each year. This is 2006, so there have been about 36 * 365 days: 36 * 365 ~ 10 * 36 * 36 = 10 * 12 * 12 * 9 ~ 14400
In Section
Seekers of Perl Wisdom
|
|