Skip to main content

quiet_hours_until

Function quiet_hours_until 

Source
pub fn quiet_hours_until(spec: &str, now: DateTime<Local>) -> Option<i64>
Expand description

notify:quiethours = "HH:MM-HH:MM" in local time. If now is inside the window, return when it ends (epoch ms); None outside it or on a malformed/empty value. A window whose end is before its start spans midnight (“22:00-08:00”). Equal start and end means “off”.