title: Find if 24 hrs have passed between datetimes
body: <p>I have the following method:</p>
  
  <pre><code># last_updated is a datetime() object, representing the last time this program ran
  def time_diff(last_updated):
      day_period = last_updated.replace(day=last_updated.day + 1, 
                                        hour=1,
                                        minute=0,  
                                        second=0,
                                        microsecond=0)
      delta_time = day_period - last_updated
      hours = delta_time.seconds // 3600
      # make sure a period of 24hrs have passed before shuffling
      if hours &gt;= 24:
          print "hello"
      else:
          print "do nothing"
  </code></pre>
  
  <p>I want to find out if 24 hrs have passed since <code>last_updated</code>, how can I do that in Python?</p>