title: Converting datetime to timedelta so they can be added
body: <p>When subtracting two <code>datetime</code> objects, I understand the result is <code>timedelta</code> object:</p>
  
  <pre><code>import datetime
  
  AcDepart = 1900-01-01 18:00:00
  AcArrival = 1900-01-01 07:00:00
  ActualHours = AcDepart - AcArrival 
  </code></pre>
  
  <p>I want to then subtract the sum of two other <code>date time</code> objects from <code>ActualHours</code></p>
  
  <p>These are the two other objects:</p>
  
  <pre><code>HrsEarly = 1900-01-01 02:00:00
  HrsLate = 1900-01-01 00:30:00
  </code></pre>
  
  <p>This is the equation that fails to complete:</p>
  
  <pre><code>UnCalcTime = ActualHours - (HrsEarly + HrsLate)
  </code></pre>
  
  <p>This is the error:</p>
  
  <pre><code>UnCalcTime = ActualHours - (HrsEarly + HrsLate)
  TypeError: unsupported operand type(s) for +: 'datetime.datetime' and 'datetime.datetime'
  </code></pre>
  
  <p>So, I obviously can't add <code>datetime.datetime</code>. Does anyone know how I could get around this? Can <code>timedelta</code> be added together? If so, how can I convert <code>datetime</code> to <code>timedelta</code>?</p>
  
  <p>Any help would be greatly appreciated as I have been trying to solve this unsuccessfully for a long time. </p>