title: How to convert decimal hour value to hh:mm:ss
body: <p>How can I convert a decimal hour value like 1.6578 to hh:mm:ss in jquery or javascript?</p>
  
  <p>I only managed to do it to hh:mm using this code:</p>
  
  <pre><code>var decimaltime= "1.6578";
  var hrs = parseInt(Number(decimaltime));
  var min = Math.round((Number(decimaltime)-hrs) * 60);
  var clocktime = hrs+':'+min;
  </code></pre>