How to display LIVE time with specific timezone? : <p>I'm trying to display a live time on my website, but with a specific timezone (GMT-4, Toronto). Since my javascript knowledge is minimal, I tried googling for a solution but it's difficult to understand. I took a look at luxon.js but not sure how to work with it. I found a snippet of code that displays current system time but not sure what to do with it. any help would be appreciated!</p>

<pre><code>function checkTime(i) {
  if (i &lt; 10) {
    i = "0" + i;
  }
  return i;
}

function startTime() {

  var today = new Date();
  var h = today.getHours();
  var m = today.getMinutes();
  var s = today.getSeconds();
  // add a zero in front of numbers&lt;10
  m = checkTime(m);
  s = checkTime(s);
  document.getElementById('time').innerHTML = h + ":" + m + ":" + s;
  t = setTimeout(function() {
    startTime()
  }, 500);
}
startTime();
</code></pre>
