title: AttributeError while using timedelta: type object 'datetime.datetime' has no attribute 'datetime'
body: <p>I have the following code in which am trying to read the time string and reduce the time by 8 hours and print in a human readable format but am running into below error. Can anyone provide guidance on how to fix this?</p>
  
  <pre><code>import time
  from datetime import datetime
  time_string = '2018-07-16T23:50:55+0000'
  
  #Reduct 8 hours and print in human readable format
  struct_time = time.strptime(time_string, "%Y-%m-%dT%H:%M:%S+0000")
  t = datetime.datetime(*struct_time[:6])
  delta = datetime.timedelta(hours=8)
  print(t+delta)
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>    t = datetime.datetime(*struct_time[:6])
  AttributeError: type object 'datetime.datetime' has no attribute 'datetime'
  </code></pre>