Re: Find day of week from month and year

2005-09-14 Thread tryit
>>> import calendar >>> [y[4] for y in calendar.monthcalendar(2005, 9) if y[4]!=0][2] 16 >>> [y[4] for y in calendar.monthcalendar(2003, 6) if y[4]!=0][2] 20 >>> [y[4] for y in calendar.monthcalendar(2006, 2) if y[4]!=0][2] 17 -- http://mail.python.org/mailman/listinfo/python-list

Re: Find day of week from month and year

2005-09-14 Thread tryit
Laguna wrote: > Hi Gurus, > > I want to find the expiration date of stock options (3rd Friday of the > month) for an any give month and year. I have tried a few tricks with > the functions provided by the built-in module time, but the problem was > that the 9 element tuple need to be populated corr

Re: Find day of week from month and year

2005-09-14 Thread tryit
Laguna wrote: > Hi Gurus, > > I want to find the expiration date of stock options (3rd Friday of the > month) for an any give month and year. I have tried a few tricks with > the functions provided by the built-in module time, but the problem was > that the 9 element tuple need to be populated cor