idlefox/src/date/mod.rs

28 lines
717 B
Rust

//! All parsing and logic associated to finding and parsing dates used in all commands
//!
//! Features:
//! Simple parsing logic: (dayname, daynumber, day month) with implicit month / year
//! Range finding: (date) - (date)
//! Comma separated dates: (date), (date)
//! Date utilities: Finding next monday etc...
#![allow(dead_code)]
mod date_parse;
// All structures
/// A punctual day (just one date)
pub struct DateEventPunctual {}
/// An interval
pub struct DateEventInterval {}
/// A date, wether punctual or interval
pub struct DateEventDate {}
/// A series of dates or intervals
pub struct DateEvent {}
// Defines date routines
pub(crate) mod date_tools;
pub(crate) use date_tools::PartialDate;