title: Check if now is less than 3 hours before
body: <p>How to check if a timestamp is more than 3 hours old?</p>
  
  <p>I have a timestamp in the following format: </p>
  
  <pre><code>15.03.2011 18:42
  </code></pre>
  
  <p>How to write the following function?</p>
  
  <pre><code>function isMoreThan3HoursOld(timestamp) {  
  // parse the timestamp  
  // compare with now (yes, client side time is ok)  
  // return true if the timestamp is more than 3 hours old  
  </code></pre>
  
  <p>}  </p>
  
  <p>(I need to do it quite often, that is on a table with about 500 timestamps (50 rows, 10 columns with timestamps))</p>
  
  <p>Regards</p>
  
  <p>Larsi</p>