use std::cmp; use std::result; use chrono::{Datelike, NaiveDate}; use crate::files::commands::{Birthday, Command, DoneDate, Note, Span, Spec, Task, Time}; use crate::files::{Files, Source, SourcedCommand}; use self::entry::EntryMap; pub use self::entry::{Entry, EntryKind}; pub use self::range::DateRange; mod date_spec; mod delta; mod entry; mod formula_spec; mod range; #[derive(Debug)] pub enum Error { DeltaInvalidStep { span: Span, start: NaiveDate, start_time: Option