Re: figuring week of the day....

2009-01-17 Thread tekion
On Jan 9, 6:05 am, Tim Chase wrote: > Tim Chase wrote: > > tekion wrote: > >> Is there a module where you could figure week of the day, like where > >> it starts and end. I need to do this for a whole year. Thanks. > > > the monthcalendar() call returns the whole month's calendar which > > may be

Re: figuring week of the day....

2009-01-09 Thread Tim Chase
Tim Chase wrote: tekion wrote: Is there a module where you could figure week of the day, like where it starts and end. I need to do this for a whole year. Thanks. the monthcalendar() call returns the whole month's calendar which may be more what you want for the big-picture. And if you want

Re: figuring week of the day....

2009-01-08 Thread Tim Chase
tekion wrote: Is there a module where you could figure week of the day, like where it starts and end. I need to do this for a whole year. Thanks. sounds like you want the standard library's "calendar" module, particularly the monthcalendar() which gets you pretty close. For a lazy version ju

Re: figuring week of the day....

2009-01-08 Thread Chris Rebert
On Tue, Jan 6, 2009 at 7:56 AM, tekion wrote: > Is there a module where you could figure week of the day, like where > it starts and end. I need to do this for a whole year. Thanks. The "%U" time format specifier (Week number of the year) to strftime() [http://docs.python.org/library/datetime.htm

Re: figuring week of the day....

2009-01-08 Thread r
here are a few tuts that go into more detail http://effbot.org/librarybook/datetime.htm http://seehuhn.de/pages/pdate -- http://mail.python.org/mailman/listinfo/python-list

figuring week of the day....

2009-01-08 Thread tekion
Is there a module where you could figure week of the day, like where it starts and end. I need to do this for a whole year. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: figuring week of the day....

2009-01-06 Thread r
On Jan 6, 9:56 am, tekion wrote: > Is there a module where you could figure week of the day, like where > it starts and end. I need to do this for a whole year. Thanks. import datetime help(datetime) import time help(time) -- http://mail.python.org/mailman/listinfo/python-list