title: Convert 12hr date/time string to 24hr datetime
body: <p>Like other questions asked here, im looking to do a simple conversion of time formats. I've found answers on how to do this in Perl, but not in Python. </p>
  
  <p>I have a string like so:</p>
  
  <pre><code>on Jun 03, 02010 at 10:22PM
  </code></pre>
  
  <p>and I'd like to convert it to a datetime object like this:</p>
  
  <pre><code>Thu, 03 Jun 2010 22:22:00 -0000
  </code></pre>
  
  <p>I have sliced up my input like so: </p>
  
  <pre><code>date = str(comment.div.contents[5].contents)
  month = date[6:9]
  day   = date[10:12]
  year  = date[15:19]
  time  = date[23:30]
  </code></pre>
  
  <p>which sets me up with some nice variables I can throw back into datetime but before I so, I must convert the time. Should I divide up <code>time</code> in the example above and calculate the <code>hh</code> and <code>{AM|PM}</code> separately?</p>