PHP to JavaScript - has time passed
<p>I am trying to work out how to do the following in JavaScript:</p>

<pre><code>if(strtotime($row['last_active']) &lt; (time() -(30))) { 
            //update...
        }
</code></pre>

<p><code>$row['last_active']</code> holds a timedate from MySQL.</p>

<p>Any ideas?</p>
