> I think you missed %U format, since later you write:
correct. I remember seeing something (a long while back) that
had a Sunday-first format, but I must have missed it in my
reading of "man strftime".
> If you want to match %U:
>
> def weekBoundaries(year, week):
> startOfYear = date(y
Tim Chase wrote:
> I've been trying to come up with a good algorithm for determining
> the starting and ending dates given the week number (as defined
> by the strftime("%W") function).
I think you missed %U format, since later you write:
> My preference would be for a Sunday->Saturday range rath
see the calendar faq http://www.faqs.org/faqs/calendars/faq/part3/,
look especially in section 6.7.
Tim Chase wrote:
> I've been trying to come up with a good algorithm for determining
> the starting and ending dates given the week number (as defined
> by the strftime("%W") function).
>
> My prefe
I've been trying to come up with a good algorithm for determining
the starting and ending dates given the week number (as defined
by the strftime("%W") function).
My preference would be for a Sunday->Saturday range rather than a
Monday->Sunday range. Thus,
>>> startDate, stopDate = weekBound