momentjs 경과시간 구하기
// 2021-10-12 02:00:00 var date1 = moment('2021-10-12 02:00:00'); var date2 = moment('2021-10-11 02:00:00'); var duration = moment.duration(date2.diff(date1)); var hours = Math.floor(duration.asHours()); var minutes = duration.minutes(); minutes = minutes === 0 …