title: How to parse a string into a datetime in Python
body: <p>I'm new in the whole programming stuff but I love it.</p>
  
  <p>Currently I am setting up my raspberry pi to show me when my bus is leaving.</p>
  
  <p>I'm getting the information from the local bus company which I then have transformed into a string for example: <strong>'09:15'</strong> (no am/pm).</p>
  
  <h2><strong>My actual problem:</strong></h2>
  
  <p>I would like python to give me the difference in minutes between now and when the next bus is leaving.</p>
  
  <p>How can I now parse my String to a datetime and then get the difference between now and when the bus is leaving?</p>
  
  <pre><code>#m2 is actually from the website and not created by myself
  
  m2 = '09:15'
  bustime = datetime.datetime.strptime(m2, '%I:%M')
  </code></pre>
  
  <p>this will actually give me a weird looking date like '1900-01-01 09:15:00'!? And if I then want to subtract 'now' from it there is a huge difference (like 117 years o.O)</p>
  
  <p>Can someone please help me? :-)</p>
  
  <h2>Update</h2>
  
  <p>I've got now the date problem but there is still something more:
  -> the bustime is given in an 12 hour format but the datetime will create a 24 hour format. How can I solve this but nevertheless calculate the difference after that? As I already mentioned I'd only like to have the minutes as a result! </p>