title: How to create a Javascript clock with custom input time?
body: <p>So I'm trying to make a Javascript clock that can start at a custom time in the format of HH:MM:SS. The code below works fine, the clock ticks up and everything, but starts at the local time, not a custom one. I thought that passing in custom parameters to Date() would work but when I try something like</p>
  
  <pre><code>time = new Date(2011, 0, 1, 12, 33, 24, 567);
  </code></pre>
  
  <p>It displays just 12:33:24 and doesn't tick up or anything. Is there something I'm missing?</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;script type="text/javascript"&gt;
        function clock() {
            var mytime = new Date();
            var seconds = mytime.getSeconds();
            var minutes = mytime.getMinutes();
            var hours = mytime.getHours();
            var currentTime = hours + ":" + minutes + ":" + seconds;
            document.getElementById("Timer").firstChild.nodeValue = currentTime;
        }
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;span id = "Timer"&gt;00:00:00&lt;/span&gt;
      &lt;script type="text/javascript"&gt;
        setInterval('clock()', 1000);
      &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>