title: Convert timestamp to rfc 3339 in Python
body: <p>I am trying to convert the timestamp <code>1452454659</code> to its rfc3339 equivalent. </p>
  
  <p>I am getting the output as:</p>
  
  <p><code>2016-01-11T01:07:39+05:30</code></p>
  
  <p>When I pass this to influxdb it returns a time of: </p>
  
  <p><code>2016-01-10T19:37:39Z</code> </p>
  
  <p>while I actually want the time in influxdb to be:</p>
  
  <p><code>2016-01-11T01:07:39</code></p>
  
  <p>I have even tried to pass only <code>2016-01-11T01:07:39</code>, leaving out <code>+5:30</code>, but then it gives me no result. </p>
  
  <p>What mistake am I making?</p>