QuietWindow constructor

const QuietWindow(
  1. int startMinute,
  2. int endMinute
)

Creates a window from startMinute to endMinute (0..1440), wrapping when start > end. Audited: 2026-06-12 11:26 EDT

Implementation

const QuietWindow(this.startMinute, this.endMinute)
  : assert(startMinute >= 0 && startMinute <= 1440, 'startMinute must be 0..1440'),
    assert(endMinute >= 0 && endMinute <= 1440, 'endMinute must be 0..1440'),
    assert(startMinute != endMinute, 'startMinute and endMinute must differ');