Skip to main content

filter

Function filter 

Source
pub fn filter(
    entries: &[TimelineEntry],
    window: &TimeWindow,
) -> Vec<TimelineEntry>
Expand description

Filter entries by time window. For LastSession, finds the last gap

6 hours between consecutive entries and returns everything after it. now_ms is injected so tests can use a fixed timestamp.