Skip to main content

snap

Function snap 

Source
pub fn snap(minutes: f32, step: u16) -> u16
Available on crate feature calendar only.
Expand description

minutes rounded to the nearest step, kept within the day.