momento calcule a duração
moment
.duration(moment(endTime, 'YYYY/MM/DD HH:mm')
.diff(moment(startTime, 'YYYY/MM/DD HH:mm'))
).asHours()
florinrelea
moment
.duration(moment(endTime, 'YYYY/MM/DD HH:mm')
.diff(moment(startTime, 'YYYY/MM/DD HH:mm'))
).asHours()
var k = moment.duration(12, 'hours');