title: How to add two datetime.datetime objects?
body: <p>I want to add two datetime objects.</p>
  
  <pre><code>&gt;&gt;&gt; from datetime import datetime
  &gt;&gt;&gt; a = datetime.strptime("04:30",'%H:%M')
  &gt;&gt;&gt; b = datetime.strptime("02:30",'%H:%M')
  &gt;&gt;&gt; a
  datetime.datetime(1900, 1, 1, 4, 30)
  &gt;&gt;&gt; b
  datetime.datetime(1900, 1, 1, 2, 30)
  </code></pre>
  
  <p>when i subtract b from a, it gives me the output</p>
  
  <pre><code>&gt;&gt;&gt; a-b
  datetime.timedelta(0, 7200)
  </code></pre>
  
  <p>but, when i add a and b it gives me error</p>
  
  <pre><code>&gt;&gt;&gt; a+b
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
   TypeError: unsupported operand type(s) for +: 'datetime.datetime' and    'datetime.datetime'
  </code></pre>
  
  <p>I want to add the time of b to time of a, i.e i want this.</p>
  
  <pre><code>datetime.datetime(1900, 1, 1, 7, 00)
  </code></pre>
  
  <p>please help ?</p>