title: Check if timestamp is x hours old?
body: <p>Simple question, but I couldn't find any related topics that match this exact scenario. Everything I found involved MySQL or date and time rather than just time.</p>
  
  <p>I have a timestamp stored in a variable in the format of:</p>
  
  <p>1325960262</p>
  
  <p>Produced by: </p>
  
  <pre><code>$newTimeStamp = time();
  </code></pre>
  
  <p><strong>How can I check if this timestamp is older than 2 hours?</strong></p>
  
  <p>I tried:</p>
  
  <pre><code>if (strtotime($ratesTimeStamp) &lt;= strtotime('-2 hours')) {
      echo "OLDER";
  } else {
      echo "not older";
  }
  </code></pre>
  
  <p>But no luck.</p>