title: Email datetime parsing with python
body: <p>I am trying to parse date time of an email using python script.</p>
  
  <p>In mail date value is like below when i am opening mail detils...</p>
  
  <pre><code>from:    abcd@xyz.com
  to:      def@xyz.com
  date:    Tue, Aug 28, 2012 at 1:19 PM
  subject: Subject of that mail
  </code></pre>
  
  <p>I am using code like</p>
  
  <pre><code>mail = email.message_from_string(str1)
  #to = re.sub('&lt;/br&gt;','',mail["To"])
  to = parseaddr(mail.get('To'))[1]
  sender = parseaddr(mail.get('From'))[1]
  cc_is = parseaddr(mail.get('Cc'))[1]
  date = mail["Date"]
  print date
  </code></pre>
  
  <p>Where as output of the same mails datetime using python parsing is like below with time offset.</p>
  
  <pre><code>Tue, 28 Aug 2012 02:49:13 -0500
  </code></pre>
  
  <p>Where I am Actually hoping for</p>
  
  <pre><code>Tue, Aug 28, 2012 at 1:19 PM
  </code></pre>
  
  <p>I am so confused between relationship of this two values.
  Can anybody help me to figure it out I need to get the same time into mail details.</p>