I am trying to convert this date string, including timezone, to an era. (python 2.7)
Mon, 08 Jun 2009 19:37:51 GMT
I tried to do this:
from dateutil import parser
parser.parse("Mon, 08 Jun 2009 19:37:51 GMT").strftime('%s')
The error I am getting is:
ValueError: invalid format string
What is the problem? How can this be fixed?
Thank.
source
share