elementary my dear anon.

line one states that now 2003-09-08 is week 37.
line 3 states that 2003-09-17 is the beginning of week 37
line 4 states that 2003-09-24 is end of week 37

ergo week 37 contains at least 2003-09-08 thru 2003-09-24.
something in the neighborhood of 17 days.

Abigail, perhaps you were a tad hasty, nowhere does he state that the eighth falls between the seventeenth and the twenty fourth in his seventeen day week.

However, I do have difficulty understanding how a 17 day week can have the 17th and the 8th in the beginning,since the 17th is the 10th day of the 17 day week, that is over half way through the week and is no longer the beginning.

Wait, Wait, It was never stated that the 24th was the LAST day of the week, it could contain more days, so both the 8th and the 17th COULD be in the beginning of the week, AND the 8th would not have to fall between the 17th and the 24th. Also proving my earlier statement incorrect (nope, no seventeen day week claimed here0.

My apologies to Anon. This is not a flame, but the logic does appeal to my twisted sense of humor.

I only hope your reply will extend the number of days in the week rather than a mundane code correction.

Enjoy!
dageek

p.s. Please forgive the use of the male gender, since I do not know the true gender of Anon, but this seems to be the kind of mistake a guy like me would make.


In reply to Re: Re: Re: Get date interval from week of year -> Date::Manip by johndageek
in thread Get date interval from week of year -> Date::Manip by LupoX

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.