title: Calculate time in a different timezone in Python
body: <p>I'm working with a dataset with timestamps from two different time zones. Below is what I am trying to do:</p>
  
  <p>1.Create a time object t1 from a string;</p>
  
  <p>2.Set the timezone for t1;</p>
  
  <p>3.Infer the time t2 at a different timezone.</p>
  
  <pre><code>import time
  s = "2014-05-22 17:16:15"
  t1 = time.strptime(s, "%Y-%m-%d %H:%M:%S")
  #Set timezone for t1 as US/Pacific
  #Based on t1, calculate the time t2 in a different time zone
  #(e.g, Central European Time(CET))
  </code></pre>
  
  <p>Any answers/comments will be appreciated..!</p>