Problems? Is your data what you think it is? | |
PerlMonks |
Re: No: of weeks in a monthby Anonymous Monk |
on Sep 13, 2012 at 11:45 UTC ( [id://993469]=note: print w/replies, xml ) | Need Help?? |
The question you ask is ambiguous: September 2013 begins on a Saturday and ends the following Sunday ... how many weeks, to you, is that? You might say six, or you might say four. Date-calculation routines are available in abundance on CPAN, but first you must nail-down the exact meaning of the question for you. See for example Date::Calc, Date::Manip for the math heavy-lifting.
In Section
Seekers of Perl Wisdom
|
|