Creates an EventItem from an EventItemAsDuration by calculating the end as start + duration.
EventItem
EventItemAsDuration
fromDuration({ start: 1, duration: 2 }); // { start: 1, end: 3 } Copy
fromDuration({ start: 1, duration: 2 }); // { start: 1, end: 3 }
Copies additional properties to the return result.
Creates an
EventItemfrom anEventItemAsDurationby calculating the end as start + duration.Copies additional properties to the return result.