I have a moment duration of say 14 seconds.
const duration = moment.duration(end.diff(startTime));
If I want to display this duration as a formatted string, I can use .humanize()
duration.humanize(true)
// in a few seconds
This works fine, but is there a way for moment to format this as an exact duration like in 14 seconds or, for a longer duration, in in 2 days and 5 hours instead of in 2 days?