nextWorkingDay

fun NepaliDateConverter.nextWorkingDay(from: SimpleDate, provider: NepaliHolidayProvider, weekend: Set<Int> = NepaliWeekend.Default): SimpleDate(source)

First working day at or after from, skipping both weekend days and dates flagged by provider.

If from is itself a working day, returns from unchanged. Otherwise scans forward day by day. Bounded scan - gives up after a year to avoid pathological provider implementations that mark every day as a holiday.

Throws

if no working day is found within 366 days of from.