workingDaysBetween

fun NepaliDateConverter.workingDaysBetween(start: SimpleDate, end: SimpleDate, provider: NepaliHolidayProvider, weekend: Set<Int> = NepaliWeekend.Default): Int(source)

Number of working days in the half-open range [start, end), skipping both weekend days and dates flagged by provider.

Mirrors the existing getNepaliDaysInBetween convention - end is exclusive. To make it inclusive, add 1 to the result if end itself is a working day.

Requires start <= end. Returns 0 when start == end.

Throws