title: how to check the minutes in python?
body: <p>I'm working on my python script to check the minutes between the <code>00</code> and the <code>29</code> minutes. </p>
  
  <p>When my local time is between 6:00PM and 6:29PM, I want to know how I can check the minutes of <code>00</code> and <code>29</code> in python?</p>
  
  <p>Here is for example:</p>
  
  <pre><code>if (now.strftime("%d") &gt;= "00" and &lt;= "29")
     self.getControl(4203).setLabel(time.strftime("%I").lstrip('0') + ':00' + time.strftime("%p"))
  else:
     self.getControl(4203).setLabel(time.strftime("%I").lstrip('0') + ':30' + time.strftime("%p"))
  </code></pre>