title: Python time greeting program
body: <p>I'm trying to create a program that greats users base on the time of the day but when I run my code I get this error:
      unorderable types: str() &lt; int()</p>
  
  <p>I dont think I'm doing it the right way and I cant figure out a better way to do it, so are the better ways to write this program???</p>
  
  <p>Here is my Code:</p>
  
  <pre><code>import time
  currentTime = time.strftime('%H:%M')   
  
  if currentTime.hour &lt; 12 :
       print('Good morning')
  if currentTime.hour &gt; 12 :
       print('Good afternoon')
  if currentTime.hour &gt; 6 :
       print('Good evening')
  </code></pre>