Automatically update innerText of a div using Query?
<p>I have a div like so:</p>

<pre><code>&lt;div id="time_text"&gt;&lt;/div&gt;
</code></pre>

<p>I want to be able to retrieve the current time automatically every seconds (or few seconds) then update the innertext of that div with the current time retrieved. I found this function online that updates the time:</p>

<pre><code>function getTime(offset){
 var now = new Date();
 var hour = 60*60*1000;
 var min = 60*1000;
 return new Date(now.getTime() + (now.getTimezoneOffset() * min) + (offset * hour));
}
</code></pre>

<p>How would I use that function to get the time automatically, then update the innerText of my div? </p>

<p>Thanks.</p>
