calculate month out of number of days in year
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2427555/python-question-year-and-day-of-year-to-date">Python Question: Year and Day of Year to date?</a>  </p>
</blockquote>



<p>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?</p>
