Skip to main content

covered

Function covered 

Source
pub fn covered(
    spans: impl IntoIterator<Item = (DateTime<Local>, DateTime<Local>)>,
) -> Duration
Expand description

The time spans (start, end) cover, counting once what several cover at the same moment: two tasks worked on in parallel for an hour took an hour of the day, not two. Empty or reversed spans count nothing.