title: How to format duration in Python (timedelta)?
body: <p>I'm a newbie to python.
  I was trying to display the time duration.
  What I did was:</p>
  
  <pre><code>startTime = datetime.datetime.now().replace(microsecond=0)
  ... &lt;some more codes&gt; ...
  endTime = datetime.datetime.now().replace(microsecond=0)
  durationTime = endTime - startTime
  print("The duration is " + str(durationTime))
  </code></pre>
  
  <p>The output is => The duration is 0:01:28
  Can I know how to remove hour from the result?
  I want to display => The duration is 01:28 </p>
  
  <p>Thanks in advance!</p>