Skip to main content

first_day_of_window

Function first_day_of_window 

Source
pub fn first_day_of_window(now_secs: u64, days: u32) -> i64
Expand description

The first day of a window of days days that ends with the day now_secs falls on, days clamped to 1..=LOOP_GUARD_LOG_RETENTION_DAYS.