expandEventDays
event repeated on each of days consecutive days, starting on its own date.
Every entry keeps the name, kind, closesOffices, id and payload of event and differs only in its date, so give the event an id through createDetailedEvent when the days have to be recognized as one thing again.
const dashain = createDetailedEvent(2082, 6, 17, 'Dashain', 'religious', true, 'dashain-2082', null)
const policy = createCalendarPolicy([7], expandEventDays(dashain, 10))Content copied to clipboard
Parameters
days
how many days the span covers, counting the first. 1 returns event alone.
Throws
if days is below 1, or if the span runs past the supported Bikram Sambat range.