title: How to use moment.JS for a certain timezone and display it in real time
body: <p>How do I go about using the Moment.JS library for an international timezone and display it in real time?</p>
  
  <p>This is what I have so far in my index page.</p>
  
  <p><em><strong>Code:</em></strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src="moment.js"&gt;&lt;/script&gt;
  &lt;script src="moment-timezone.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      moment().tz("America/Los_Angeles").format();
      document.getElementById("time").firstChild.data = moment().format('hh:mm:ss a')
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;span id="time"&gt;s&lt;/span&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is my first time using MomentJS and I dont know if I have implemented it correctly and to display it in real time without refreshing the page constantly.</p>