-3

Has anyone converted this kind of times before?

2020-10-12T01:00:00-07:00 to 2020-10-12T09:00:00-07:00

equals

Monday, October 12, 2020 at 10:00 AM – 6:00 PM UTC+02

to datetime objects?

deyoya9727
  • 11
  • 1

1 Answers1

1

2020-10-12T01:00:00-07:00
<--date--> <-time-><zone>

This means 1am on October 12th, 2020, in the time zone 7 hours west of UTC (running through the middle of the US, basically).

It's actually one of the ISO8601 formats, used for date/time data interchange.

I believe the dateutil.parser() library can handle this in Python.

paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953