Module timelog::day

source ·
Expand description

Represention of a day as a set of times, entries, and durations.

Examples

use timelog::{Day, Entry, Result};

let mut day = Day::new("2021-07-02")?;
while let Some(entry) = entry_iter.next() {
    day.add_entry(entry);
}
day.finish()?;
print!("{}", day.detail_report());

Description

The Day type represents the entries of a particular day. It tracks projects and combines time spent on the same task from multiple points in the day.

Day also provides the ability to print various reports on the day’s activities.

Re-exports

Modules

Structs

  • Type representing a day and all associated tasks

Functions