I'm trying to convert this date string including timezone to epoch time. (python 2.7)
Mon, 08 Jun 2009 19:37:51 GMT
I tried to do so like that:
from dateutil import parser
parser.parse("Mon, 08 Jun 2009 19:37:51 GMT").strftime('%s')
The error I get is:
ValueError: Invalid format string
What is the problem? How can it be fixed?
Thanks.