title: can't compare datetime.datetime to int ; datetime to unix  timestamp
body: <p>I am trying to write a basic program that iterates through files in a directory and checks for files modified in last xxxxxx. Unfortunatley datetime does not allow me to iterate to an int.  </p>
  
  <pre><code>file_list_attr = sftp.listdir_attr('/Path')
  
  for f in file_list_attr:
      print "name=%s, modified date=%s, size=%s" % (f.filename, f.st_mtime,f.st_size)
  
  mt = f.st_mtime
  now= dt.datetime.now()
  delta = dt.timedelta(minutes=2120) 
  while mt &gt; dt.datetime.now() - delta:
  
  #while f.st_mtime == now-dt.timedelta(days=1):
     print 'You have something here'
  else:
      print 'nada'
  </code></pre>