There's more than one way to do things | |
PerlMonks |
Re^6: I want to know the current week number of the current monthby syphilis (Archbishop) |
on Oct 13, 2017 at 12:34 UTC ( [id://1201310]=note: print w/replies, xml ) | Need Help?? |
Sure, just answer my questions It's just a matter of understanding the definition of the words: The first week of the month is (by definition) that period from the 1st to the 7th (inclusive). The second week of the month is (by definition) that period from the 8th to the 14th (inclusive). The third week of the month is (by definition) that period from the 15th to the 21st (inclusive). The fourth week of the month is (by definition) that period from the 22nd to the 28th (inclusive). After that, you're in the fifth week of the month until the next month comes around. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|