How to specify time zone (UTC) when converting to Unix time? (Python)

前端 未结 4 1193
遥遥无期
遥遥无期 2021-01-03 04:08

I have a utc timestamp in the IS8601 format and am trying to convert it to unix time. This is my console session:

In [9]: mydate
Out[9]: \'2009-07-17T01:21:0         


        
4条回答
  •  死守一世寂寞
    2021-01-03 04:20

    I am just guessing, but one hour difference can be not because of time zones, but because of daylight savings on/off.

提交回复
热议问题