title: How do I find difference between times in different timezones in Python?
body: <p>I am trying to calculate difference(in seconds) between two date/times formatted as following:</p>
  
  <p>2010-05-11 17:07:33 UTC</p>
  
  <p>2010-05-11 17:07:33 EDT</p>
  
  <pre><code>time1 = '2010-05-11 17:07:33 UTC'
  time2 = '2010-05-11 17:07:33 EDT'
  delta = time.mktime(time.strptime(time1,"%Y-%m-%d %H:%M:%S %Z"))-\
          time.mktime(time.strptime(time2, "%Y-%m-%d %H:%M:%S %Z"))
  </code></pre>
  
  <p>The problem I got is EDT is not recognized, the specific error is</p>
  
  <pre><code>ValueError: time data '2010-05-11 17:07:33 EDT' does not match format '%Y-%m-%d %H:%M:%S %Z'
  </code></pre>