How to convert seconds to 10h 20m in moment.js, I did not find such a solution, who show 0h 01m(example)
result : 0h 01m
How to convert seconds to 10h 20m in moment.js, I did not find such a solution, who show 0h 01m(example)
result : 0h 01m
you can use smth like this
seconds = 18100;
moment.utc(1000 * seconds).format('H[h] mm[m]'); // "5h 01m"
UPD: so if you need zeros then format could be
seconds = 3700;
moment.utc(1000 * seconds).format('HH[h] mm[m]'); // "01h 01m"