human
How to parse dates with -0400 timezone string in python?
assistant
Here is some code to parse date string '2009/05/13 19:19:30 -0400' using format '%Y/%m/%d %H:%M:%S %z'

datetime.strptime('2009/05/13 19:19:30 -0400', '%Y/%m/%d %H:%M:%S %z')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.