title: check date in range of 24 hours from now
body: <p>I have been banging my head with this for a while now. Does someone know how I can check to see if <code>$theDate</code> is within the range of 24 hours FROM NOW. </p>
  
  <p>This is the code I have come up with but it doesn't seem to work :(</p>
  
  <pre><code>if (time() &lt;= ($theDate + 86400)) {
      // current time is 86400 (seconds in 24 hours) or less than stored time
  }
  </code></pre>
  
  <p><strong>Note: <code>$theDate</code> is unix timestamp.</strong></p>
  
  <p>Any help would be appreciated. </p>
  
  <p>Thanks :)</p>