如何解释时区 2013-04-01T00:00:00.000+02:00?

How to interpret time zone 2013-04-01T00:00:00.000+02:00?

+02:00 是什么意思?

my sqlalchemy + pandas 翻译成

2013-03-31 22:00:00

对吗?

非常感谢

时间字符串 2013-04-01T00:00:00.000+02:00 是一个 ISO 8601:2004 notation for the instant of midnight (to the nearest millisecond) on April Fools' Day (1st April) 2013 in a time zone with offset UTC+2 (two hours ahead or east of UTC).

在字符串中,+02:00 是与 UTC 的时区偏移量。 UTC+2 的 2013 年愚人节午夜是 UTC (GMT) 时区 3 月 31 日的晚上 10 点,因此更改为 SQLAlchemy and Pandas is 'correct' for the new time zone offset for UTC, aka Z or 'Zulu time' 或 +00:00。

德国在冬季使用 UTC+1,在夏季使用 UTC+2 的时区偏移(在欧洲使用的 worldtimezone.com to be sure). By the end of March or beginning of April, Europe has switched to summer (daylight saving) time. The rule 检查是 'summer time starts on the last Sunday in March and ends on the last Sunday in October'。因此,原始时间可能是德国午夜。修改后的时间在 UTC 或 GMT 中仍然是正确的,但在英国不是正确的本地时间(英国当时是英国夏令时、BST 或 UTC+1)。

2013-04-01T00:00:00.000+02:00 不是时区 -- 它是 rfc 3339 format 中指定的时间。

What does +02:00 mean ?

表示utc偏移量为+2小时 其中utc偏移量定义为:

<local time> = <utc time> + <utc offset>

注意:utc偏移量也不是时区:

- multiple timezones may have the same utc offset at some point
- the same timezone may have different utc offset at different times

my sqlalchemy + pandas translate it into 2013-03-31 22:00:00 Is that correct ?

2013-03-31 22:00:00是对应的utc时间。如果系统期望这里的时间为 UTC 时间,那么它是正确的。