title: Django filter model with timestamp
body: <p>I have the following models:</p>
  
  <pre><code>class User(models.Model):
      id = models.CharField(max_length=10, primary_key=True)
  
  class Data(models.Model):
      user = models.ForeignKey(User, on_delete=models.CASCADE)
      timestamp = models.IntegerField(default=0)
  </code></pre>
  
  <p>Given a single user, I would like to know how I can filter using timestamp. For example:</p>
  
  <p>Obtain the data from user1, between now and 1 hour ago.</p>
  
  <p>I have the current timestamp with <code>now = time.time()</code>, also I have 1 hour ago using <code>hour_ago = now-3600</code></p>
  
  <p>I would like to obtain the Data that has a timestamp between these two values.</p>