Re: Calendar Stuff

2009-11-11 Thread Victor Subervi
On Wed, Nov 11, 2009 at 1:12 AM, Simon Forman wrote: > On Tue, Nov 10, 2009 at 12:53 PM, Victor Subervi > wrote: > > Hi; > > I have the following code: > > > > import calendar, datetime > > > > def cal(): > > ... > > myCal = calendar.Calendar(calendar.SUNDAY) > > today = datetime.date.toda

Re: Calendar Stuff

2009-11-10 Thread Simon Forman
On Tue, Nov 10, 2009 at 12:53 PM, Victor Subervi wrote: > Hi; > I have the following code: > > import calendar, datetime > > def cal(): >   ... >   myCal = calendar.Calendar(calendar.SUNDAY) >   today = datetime.date.today() >   day = today.day >   mo = today.month >   yr = today.year > #  month =

Re: Calendar Stuff

2009-11-10 Thread Dave Angel
(Comments inline, and at end) Victor Subervi wrote: On Tue, Nov 10, 2009 at 2:02 PM, MRAB wrote: Victor Subervi wrote: Hi; I have the following code: import calendar, datetime def cal(): ... myCal = calendar.Calendar(calendar.SUNDAY) today = datetime.date.today() day = today.d

Re: Calendar Stuff

2009-11-10 Thread Victor Subervi
On Tue, Nov 10, 2009 at 2:02 PM, MRAB wrote: > Victor Subervi wrote: > >> Hi; >> I have the following code: >> >> import calendar, datetime >> >> def cal(): >> ... >> myCal = calendar.Calendar(calendar.SUNDAY) >> today = datetime.date.today() >> day = today.day >> mo = today.month >> yr = t

Re: Calendar Stuff

2009-11-10 Thread MRAB
Victor Subervi wrote: Hi; I have the following code: import calendar, datetime def cal(): ... myCal = calendar.Calendar(calendar.SUNDAY) today = datetime.date.today() day = today.day mo = today.month yr = today.year # month = myCal.monthdayscalendar(int(time.strftime("%Y")) month