Skip to main content

window_nests

Function window_nests 

Source
pub fn window_nests(fine: &str, coarse: &str) -> bool
Expand description

Whether windows of width fine nest exactly in windows of coarse: every hour in one day, every day in one week (weeks start on Monday) and one month. Windows are cut on the stored clock with no time zone (UTC for a zoned column; see [time_window_start]), where no day has 23 or 25 hours, so a sum of the finer counts is the coarser count. A week does not nest in a month.