Creats an EventItemAsDuration from an EventItem by calculating the duration as end - start.
EventItemAsDuration
EventItem
toDuration({ start: 1, end: 3 }); // { start: 1, duration: 2 } Copy
toDuration({ start: 1, end: 3 }); // { start: 1, duration: 2 }
Copies additional properties to the return result.
Creats an
EventItemAsDurationfrom anEventItemby calculating the duration as end - start.Copies additional properties to the return result.