Package-level declarations

Functions

Link copied to clipboard
fun LocalDate.businessDaysUntil(to: LocalDate): Int

Returns the number of business days (Mon–Fri) between this date and to. Example: LocalDate(2024, 3, 4).businessDaysUntil(LocalDate(2024, 3, 11)) → 5

Link copied to clipboard
fun LocalDate.isBusinessDay(): Boolean

Returns true if this date is a business day (Mon–Fri).

Link copied to clipboard
fun LocalDate.nextBusinessDay(): LocalDate

Returns the next business day after this date (skips weekends). Example: LocalDate(2024, 3, 8).nextBusinessDay() → LocalDate(2024, 3, 11) (skips weekend)

Link copied to clipboard
fun LocalDate.plusBusinessDays(days: Int): LocalDate

Adds days business days to this date, skipping weekends. Example: LocalDate(2024, 3, 1).plusBusinessDays(3) → LocalDate(2024, 3, 6) (skips Sat/Sun)

Link copied to clipboard
fun LocalDate.previousBusinessDay(): LocalDate

Returns the previous business day before this date.

Link copied to clipboard
fun LocalDate.toBusinessDayLabel(from: LocalDate = Clock.System.todayIn(TimeZone.currentSystemDefault())): String

Returns a human-readable business-day label.