Skip to main content

floor_window

Function floor_window 

Source
pub fn floor_window(time: NaiveDateTime, every: &str) -> NaiveDateTime
Expand description

The start of the window time falls in, cut as a run cuts them: hours on the hour, days at midnight, weeks from Monday, months from the first.