I have a timer in my project, I have time format in seconds 90000
I want to transform seconds in hours and minutes (HH:mm) using moment.js, I wonder how I can get the exact time, if time is less than 86399
moment works as expected, but my aim is to get such a result 25:00
, is this possible with moment?
const secs = 90000;
const formatted = moment.utc(secs*1000).format('HH:mm');
document.write(formatted);
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>