title: Adding seconds to ISO 8601 datestamp string
body: <p>I am trying to add seconds to a datestamp string that is received from a json object but the datetime function I am trying to use does not allow strings and wants the date to be separated like: <code>datetime.strftime(2011,11,18)</code>. Here is what I have:</p>
  
  <pre><code>import requests
  from datetime import datetime
  
  def call():
      pay = {'token' : "802ba928cd3ce9acd90595df2853ee2b"}
      r = requests.post('http://challenge.code2040.org/api/dating',
                        params=pay)
      response = r.json()
      time = response['datestamp']
      interval = response['interval']
      utc = datetime.strftime(time, '%Y-%m-%dT&amp;H:%M:%S.%fZ')
      timestamp = (utc-time).total_seconds()
      utc_dt = datetime(time) + timedelta(seconds=timestamp)
      print(utc_dt.strftime('%Y-%m-%dT%H:%M:%S.%fZ'))
  </code></pre>
  
  <p>Is there another way I can add time to a ISO8601 datestamp?</p>