Companion

object Companion

Functions

Link copied to clipboard

Creates a full-day DND time window (00:00-23:59).

Link copied to clipboard
fun overnight(startDay: DayOfWeek, startHour: Int, startMinute: Int, endHour: Int, endMinute: Int): Map<DayOfWeek, List<DndTimeWindow>>

Creates a DND schedule that crosses midnight, splitting into two entries.

Link copied to clipboard

Creates a schedule applying the given timeWindows to weekdays (Monday-Friday).

Link copied to clipboard

Creates a schedule applying the given timeWindows to weekends (Saturday-Sunday).