Finding time difference and executing a condition
<pre><code>var currentTime = Math.round(new Date().getTime()/1000)
var previousTimeStamp = Math.round(new Date().getTime()/1000)

var difference = currenTime - previousTimeStamp

if(difference &lt; 0 minutes) {
   execute some code
}
</code></pre>

<p>This condition is not getting executed.</p>
