title: Parsing date with timezone from an email?
body: <p>I am trying to retrieve date from an email. At first it's easy:</p>
  
  <pre><code>message = email.parser.Parser().parse(file)
  date = message['Date']
  print date
  </code></pre>
  
  <p>and I receive:</p>
  
  <pre><code>'Mon, 16 Nov 2009 13:32:02 +0100'
  </code></pre>
  
  <p>But I need a nice datetime object, so I use:</p>
  
  <pre><code>datetime.strptime('Mon, 16 Nov 2009 13:32:02 +0100', '%a, %d %b %Y %H:%M:%S %Z')
  </code></pre>
  
  <p>which raises <code>ValueError, since %Z isn't format for +0100</code>. But I can't find proper format for timezone in the documentation, there is only this <code>%Z</code> for zone. Can someone help me on that?</p>