Convert seconds into hh:mm:ss format using moment.js
<p>I am trying to convert seconds in hh:mm:ss format . 
I have using below code to convert seconds into hours,min.
but I don't want to do all this. Is it possible in moment.js to convert seconds into HH:MM:SS format. rather than doing it manually.</p>

<pre><code>var x = 43000
var durationValue = moment.duration(x, 'milliseconds');
var hours = Math.floor(durationValue.asHours());
var mins = Math.floor(durationValue.asMinutes()) - hours * 60;
console.log("hours:" + hours + " mins:" + mins);
</code></pre>