title: How to get difference of two timestamps?
body: <pre><code>if((ts2 - ts1) &gt; 300000){
      return false;
  }
  </code></pre>
  
  <p>I have two timestamps </p>
  
  <pre><code>new Date().getTime();
  </code></pre>
  
  <p>Both different and I want to calculate this difference. Any ideas on how to do this the easy way?</p>