Which week did 1. of October (Sunday) and 2. belong to?
Answer: I can't clearly understand this sir. I'm sorry.

That's a notation I've seen that avoids mucking about with "st", "nd", "th" for the ordinals. "1. of October" means "1st of October" or "first of October". IIRC, it's more common in Europe than the States, but I don't know if it's all of Europe, or just certain areas. I don't know if you're European or not, or whether my regional assumptions about the notation are correct; however, I am guessing you didn't recognize the "." notation for ordinals, and that's what's confusing you. If I've mis-guessed, you'll have to explain exactly what you don't understand.

The questions were all meant to elicit more thought and more definition of the problem on your part.

Do you define "October Week 1" as October 1st through 7th, and "October Week 2" as October 8th through 14th, no matter what year it is (so whether October starts on Mon, Tue, Wed,...)? Or is "Week 1" the first week that includes a Thursday in October, and it's "Week 0" if it's Friday October 1st (some other year)? Or if October 1st is a Saturday, is Saturday the only day of "October Week 1" and Sunday is the first day of "October Week 2"? update: Or, if your weeks start on Monday, then shift those cases by a day. (I am not asking exact questions. I am asking to elicit more thought and a more detailed definition./update

How do you handle potential extra partial week at the end of the month (this year, is the 29th part of "October Week 5", or is it part of "November Week 1" or something else entirely?)


In reply to Re^5: I want to know the current week number of the current month by pryrt
in thread I want to know the current week number of the current month by Muskovitz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.