title: How to convert String Datetime to timestamp in Python?
body: <p>I want to convert this string <code>datetimestring = 'Fri, 08 Jun 2012 22:40:26 GMT'</code> to timestamp using python.</p>
  
  <p>I tried </p>
  
  <pre><code> timestamp = time.mktime(time.strptime(datetimestring, '%a, %d %B %Y %H:%M:%S GMT'))
  </code></pre>
  
  <p>but reports regex error.</p>