Re: Getting start/end dates given week-number

2006-06-09 Thread Tim Chase
> 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

Re: Getting start/end dates given week-number

2006-06-09 Thread Serge Orlov
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

Re: Getting start/end dates given week-number

2006-06-09 Thread [EMAIL PROTECTED]
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

Getting start/end dates given week-number

2006-06-09 Thread Tim Chase
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