title: TypeError: '<' not supported between instances of 'builtin_function_or_method' and 'datetime.datetime'
body: <p>i am getting a TypeError with the following code:</p>
  
  <pre><code>def date_check(datetocheck):
      import datetime
      if datetocheck.date &lt; datetime.datetime.now() - datetime.timedelta(seconds=20):
          print("Go")
  
  
  def date():
      from datetime import datetime
      # datetime_object = datetime.strptime('Jun 1 2005  1:33PM', '%b %d %Y %I:%M%p')
      datetime_object = datetime.strptime('09.02.19 14:03:34', '%d.%m.%y %H:%M:%S')
  
      date_check(datetime_object)
  
  
  date()
  </code></pre>
  
  <p>And i don't get why, both objects are from the datime modul. </p>
  
  <p>Changed:
  datetocheck.date -> datetocheck.date()</p>
  
  <p>Now getting this error:
  TypeError: can't compare datetime.datetime to datetime.date</p>