title: Python 3, Check if epoch time is within timeframe
body: <p>I need to check if an epoch time is less than 1 day, 3 days, and 5 days. This seems to works but feels overly complex for python. Can it be simplified?</p>
  
  <pre><code>import datetime
  feed_time = 1508522102
  d1 = round((datetime.datetime.now() - datetime.timedelta(1)).timestamp())
  d2 = round((datetime.datetime.now() - datetime.timedelta(3)).timestamp())
  d3 = round((datetime.datetime.now() - datetime.timedelta(5)).timestamp())
  if feed_time &gt; d1:
      print("less than one day")
      # do something if feed_time is less than 1 day
  if feed_time &gt; d2:
      print("less than three days")
      # do something if feed_time is less than 3 days
  if feed_time &gt; d3:
      print("less than five days")
      # do something if feed_time is less than 5 days
  </code></pre>