title: Converting AM/PM Time to epoch
body: <p>I'm trying to convert a string date to epoch, but it doesn't seem to pick up the am or pm.  The time always defaults to am.</p>
  
  <p>I've tried this:</p>
  
  <pre><code>dt = '2015-05-04 5:55PM'
  pattern = '%Y-%m-%d %H:%M%p'
  epochDate = int(time.mktime(time.strptime(dt, pattern)))
  print epochDate
  
  # Result
  1430684700
  
  # Checking output
  datetime.datetime.fromtimestamp(1430684700).strftime('%Y-%m-%d %H:%M:%S%p')
  
  # Doesn't show PM
  '2015-05-04 05:55:00AM'
  </code></pre>
  
  <p>I'm not sure what I've done wrong here?</p>