擅长:python、mysql、java
<p>问题是UTC偏移量。RFC3339 Internet日期/时间格式要求每个日期时间都包含一个UTC偏移量,并且这些偏移量可以是Z(Zulu时间的缩写)或+HH:MM或-HH:MM格式,如+05:00或-10:30。你知道吗</p>
<p>因此,这些都是有效的RFC 3339日期时间:</p>
<pre><code>2008-09-03T20:56:35.450686Z
2008-09-03T20:56:35.450686+05:00
2008-09-03T20:56:35.450686-10:30
</code></pre>
<p>唉,strtime和strftime使用的格式字符串没有与rfc3339格式的UTC偏移量对应的指令。您需要使用第三方库或不带偏移量的解析。你知道吗</p>
<p><a href="https://medium.com/@pritishmishra_72667/converting-rfc3339-timestamp-to-utc-timestamp-in-python-8dfa485358ff" rel="nofollow noreferrer">Helpful link</a></p>