title: How can I perform divison on a datetime.timedelta in python?
body: <p>I'd like to be able to do the following:</p>
  
  <pre><code>num_intervals = (cur_date - previous_date) / interval_length
  </code></pre>
  
  <p>or</p>
  
  <pre><code>print (datetime.now() - (datetime.now() - timedelta(days=5))) 
        / timedelta(hours=12)
  # won't run, would like it to print '10'
  </code></pre>
  
  <p>but the division operation is unsupported on timedeltas. Is there a way that I can implement divison for timedeltas?</p>
  
  <p><strong>Edit:</strong> Looks like this was added to Python 3.2 (thanks rincewind!): <a href="http://bugs.python.org/issue2706" rel="noreferrer">http://bugs.python.org/issue2706</a></p>