Possible Duplicate:
Python Question: Year and Day of Year to date?
Is there a method in Python to figure out which month a certain day of the year is in, e.g. today is day 299 (October 26th). I would like to figure out, that day 299 is in month 10 (to compile the string to set the Linux system time). How can I do this?