Skip to main content

now

Function now 

Source
pub fn now(
    settings: &DndSettings,
    sources: &Sources,
    press: Option<&Press>,
    now: i64,
) -> Now
Expand description

Why do-not-disturb holds at now (Unix seconds), from the reasons’ sources, the settings and the switch’s latest press. A press “off” made after a reason began holds that reason off until it ends; the pause first, then Free time (never with the pause), sleep, focus, the switch.