spanningThrough

This event on each day from its own date through end, both ends included, which is the shape published holiday lists and leave requests usually state a span in.

Expands the same way spanningDays does: an entry per day, carrying everything but the date unchanged. An end equal to this event's date returns the event alone.

NepaliCalendarEvent(
date = SimpleDate(2082, 6, 17),
name = "Annual leave",
kind = NepaliEventKind.Observance,
id = "leave-42"
).spanningThrough(SimpleDate(2082, 6, 26))

Throws

if end falls before this event's date, if end is not a day its month has, or if the span runs past NepaliCalendarDefaults.NepaliYearRange. A day the month does not reach is refused rather than rolled into the next one, since rolling would silently return a span of the wrong length.