Unix timestamp to iso 8601 time format
<blockquote>
<p>When I convert unix time 1463288494 to isoformat i get 2016-05-14T22:01:34. How can I get the output including the -07:00. In this format 2016-05-14T22:01:34-07:00</p>
</blockquote>
<pre><code>from datetime import datetime
t =  int(&quot;1463288494&quot;)
print(datetime.fromtimestamp(t).isoformat())
</code></pre>