I need to convert hours and minutes in minutes values. With pure JavaScript Date object I do the following:
var d = new Date(); var minutes = d.getHours() *
I think your best bet is to create a Duration and then get the minutes using asMinutes. This is probably clearer when describing an interval of time.
Duration
asMinutes
moment.duration().asMinutes()
Here is the reference in the docs.