parse date string having "EDT"

Junaid P V junu.pv at gmail.com
Mon Jun 20 22:56:59 EDT 2011


I was trying to parse a date string containing "EDT" time zone

eg: 'Mon Jun 20 14:00:57 EDT 2011'

I tried:

datetime.strptime('Mon Jun 20 14:00:57 EDT 2011', '%a %b %d %H:%M:%S %Z %Y')

But I get error



More information about the Python-list mailing list