Skip to main content

in_window

Function in_window 

Source
pub fn in_window(now: u32, start: u32, end: u32) -> bool
Expand description

True iff now (minutes since midnight) falls inside [start, end), with wrap-around: a window like 22:0006:00 correctly straddles midnight. start == end is treated as an empty window.