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
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
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
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
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
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
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