Week and days

Scott kain at cableadmin.com
Mon May 8 08:35:12 EDT 2000


In article <39167ea7.366149144 at news.ramk.fi>, Teemu Keskinarkaus wrote:
>Hi..
>
>I have project where I need years weeks and week's begin and endday
>something like this: "Week 19 (8.5. - 14.5.)" I tried to do time tuple
>and that way to do it but I couldn't get working version. Is there an
>(easy) way to do it or have someone already done that??
>
>TK

Hello,

I usually end up using the mxDateTime module 
(http://starship.python.net/~lemburg/mxDateTime.html) and the calendar 
module that comes with the Python distribution.  I usually use xmDateTime
for easy date and time addition and pass the month and year values to the
calendar.monthcalendar() function that gives me a matrix of weeks.
Just a suggestion.

-Scott



More information about the Python-list mailing list