title: How to round the minute of a datetime object
body: <p>I have a <code>datetime</code> object produced using <code>strptime()</code>.</p>
  <pre><code>&gt;&gt;&gt; tm
  datetime.datetime(2010, 6, 10, 3, 56, 23)
  </code></pre>
  <p>What I need to do is round the minute to the closest 10th minute. What I have been doing up to this point was taking the minute value and using round() on it.</p>
  <pre><code>min = round(tm.minute, -1)
  </code></pre>
  <p>However, as with the above example, it gives an invalid time when the minute value is greater than 56. i.e.: 3:60</p>
  <p>What is a better way to do this? Does <code>datetime</code> support this?</p>