I am new to Momentjs. I am trying to use it to convert milliseconds to hours and minutes. Below, x is milliseconds
x = 433276000 var y = moment.duration(x, 'milliseconds').asHours;
Can anyone help?
I ended up doing this...
var x = 433276000 var tempTime = moment.duration(x); var y = tempTime.hours() + tempTime.minutes();
1.4m articles
1.4m replys
5 comments
57.0k users