> What do you mean by, "the 9 element tuple need to be populated > correctly"? Do you need someone to tell you what values it > needs? What happens if you use (2005, 9, 1, 0, 0, 0, 0, 0, 0), > for example? If you make this tuple with localtime or gmtime, > do you know what the 7th (tm[6]) element of the tuple is? > What tricks did you try, exactly? > > Donn Cave, [EMAIL PROTECTED]
Thanks for pointing out. tm[6] = weekday, and tm[7] = Julian data, but I wouldn't know these values when my input values are month and year. I will try out the more constructive suggestions from Paul and Robert. Following is what I have tried. As you can tell, the results are wrong! >>> import time >>> time.asctime((2003, 9, 1, 0, 0, 0, 0, 0, 0)) 'Mon Sep 01 00:00:00 2003' >>> time.asctime((2003, 8, 1, 0, 0, 0, 0, 0, 0)) 'Mon Aug 01 00:00:00 2003' >>> time.asctime((2003, 7, 1, 0, 0, 0, 0, 0, 0)) 'Mon Jul 01 00:00:00 2003' -- http://mail.python.org/mailman/listinfo/python-list