in reply to No: of weeks in a month
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: No: of weeks in a month
by DrHyde (Prior) on Sep 13, 2012 at 12:58 UTC | |
Re^2: No: of weeks in a month
by daxim (Curate) on Sep 13, 2012 at 13:32 UTC | |
by grumbert (Scribe) on Sep 13, 2012 at 14:30 UTC |
In Section
Seekers of Perl Wisdom