title: How to get hour and minute integers from TimeField in Django?
body: <p>I have a <code>TimeField()</code> which saves a time. I want to create a model method that finds if user has arrived after 9:00.</p>
  
  <pre><code>def late(self):
      t = strptime(self.time, "%H:%M")
      hour = int(t.tm_hour)
      min = t.tm_min
      if hour &gt; 9:
          return True
  </code></pre>
  
  <p>What's wrong with this code?</p>