title: Saving Time into Postgres database using SQLAlchemy
body: <p>I have a Python application which utilizes SQLAlchemy to interface with a Postgres database. I am running into some issues saving a time object into the database.</p>
  
  <p>I define two time columns where db is a SQLAlchemy object:</p>
  
  <pre><code>offHours                = db.Column(db.Time)
  onHours                 = db.Column(db.Time)
  </code></pre>
  
  <p>Elsewhere in the code, I try to save a time value from a string: </p>
  
  <pre><code>offHours = "06:23"
  onHours = "14:34"
  </code></pre>
  
  <p>Python then throws the following:</p>
  
  <pre><code>time data '06:23' does not match format '%HH:%MM'
  </code></pre>
  
  <p>I am confused by this error because the input is a valid 24 hour time. Additionally, the Python docs state that the correct formatter for a 24 hour timestamp is '%H:%M'. If this is the case, why is SQLAlchemy using '%HH:%MM' as it's time formatter?</p>
  
  <p>In short, what am I doing wrong when saving these times? Is it my input or possibly some issue with my database configuration?</p>