How to use the default function from moment

Find comprehensive JavaScript moment.default code examples handpicked from public code repositorys.

41
42
43
44
45
46
47
48
49
50
      nextStatusTimes += order.eta_next_status_times[key];
    }
  });
}
totalEta += nextStatusTimes;
var diffTimeAsSeconds = _moment.default.utc(order === null || order === void 0 ? void 0 : (_order$reporting_data = order.reporting_data) === null || _order$reporting_data === void 0 ? void 0 : _order$reporting_data.at["status:".concat(order.status)]).add(order === null || order === void 0 ? void 0 : order.eta_current_status_time, 'minutes').diff((0, _moment.default)().utc(), 'seconds');
var diffTimeAsMinutes = Math.ceil(diffTimeAsSeconds / 60);
if (diffTimeAsMinutes <= 0) {
  totalEta += Math.floor(Math.abs(diffTimeAsMinutes / (order === null || order === void 0 ? void 0 : order.eta_current_status_time)) + 1) * (order === null || order === void 0 ? void 0 : order.eta_current_status_penalty_time);
}
fork icon0
star icon1
watch icon1

+ 5 other calls in file