workingDaysBetween
fun NepaliDateConverter.workingDaysBetween(start: SimpleDate, end: SimpleDate, provider: NepaliEventProvider, weekend: Set<Int> = NepaliWeekend.Default): Int(source)
Number of working days in the half-open range [start, end), skipping both weekend days and the dates provider says the institution is shut for.
Mirrors the existing getNepaliDaysInBetween convention: end is exclusive. To make it inclusive, add 1 to the result if end itself is a working day. A day that is both a weekend and a closure is skipped once.
Requires start <= end. Returns 0 when start == end.
Throws
if start > end.
fun NepaliDateConverter.workingDaysBetween(start: SimpleDate, end: SimpleDate, policy: NepaliCalendarPolicy): Int(source)
Number of working days in the half-open range [start, end) for the institution policy describes, skipping both its weekly off days and the events that close it.
Same contract as the provider overload: end is exclusive, start <= end is required, and a day that is both a weekly off day and a closure is skipped once.