I have dates in these formats:
Thursday, September 22, 2016 at 11:04am UTC+02
Monday, January 22, 2018 at 6:46pm CST
...
I want to convert them to UNIX timestamps. This pattern works, but it ignores the timezone:
timestamp = pd.to_datetime(date, format='%A, %B %d, %Y at %H:%M%p', exact=False)
I don't see how to take the timezones ("UTC+02, "CST") into account.
This doesn't work:
timestamp = pd.to_datetime(date, format='%A, %B %d, %Y at %H:%M%p %Z')
# ValueError: unconverted data remains: +02