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§
pub use report::DailyChart;pub use report::DetailReport;pub use report::EventReport;pub use report::HoursReport;pub use report::SummaryReport;
Modules§
- report
- Support for Day reports
Structs§
- Day
- Type representing a day and all associated tasks
Functions§
- format_
dur - Format duration information as a
Stringof the formH:MM