• Parse "0915-1015", optionally with a day filter after a colon: "0930-1600:23456" is Monday to Friday. Whitespace around the parts is ignored. An end at or before the start is a window that runs past midnight.

    Returns null rather than throwing, because the spec is normally a string a user typed into a settings field and a half-typed one arrives on every keystroke.

    Parameters

    • spec: string

    Returns SessionSpec | null