title: Format time in hh:mm:ss
body: <p>How do I set format on time?
  It shows 16:9:2
  It should show 16:09:02</p>
  
  <p>my code:</p>
  
  <pre><code>setInterval(function _timer() {
  
  var time = new Date();
  var h = time.getHours();
  var m = time.getMinutes();
  var s = time.getSeconds();
  var fullTime = h + ":" + m + ":" + s;
  fullTime.format("hh-MM-ss");// this is not working
  $("#time").html(fullTime);
  
  1000
  </code></pre>
  
  <p>});</p>