title: Python convert timedelta type to sql time type
body: <p>Invalid data type when using Python time delta result and saving to time type in MS SQL server.</p>
  
  <pre><code>start_time = (datetime.fromtimestamp(1553182159222 / 1e3))
  end_time = (datetime.fromtimestamp(1553182159924/ 1e3))
  run_time = end_time - start_time
  </code></pre>
  
  <p>Which returns:</p>
  
  <pre><code>0:00:00.702000
  </code></pre>
  
  <p>This is the correct math for timedelta, but I'm erroring when using run_time variable as input for SQL Server datatype TIME.</p>