I am trying to match time zones with empty string in strptime function. Howevr, I get the following error.
ValueError: time data 'Thu Apr 14 01:46:29 MDT 2016' does not match format '%a %b %d %H:%M:%S %Y'
This is the code I try.
import datetime
d = datetime.datetime.strptime('Thu Apr 14 01:46:29 MDT 2016', '%a %b %d %H:%M:%S %Y')
How to map time-zone in python? time zone can be MDT, MST,etc.