human-chrono-parser 0.0.1

Parse human-written relative dates like "today" ,"tomorrow", "in 3 days", "next monday" and other variants.
Documentation
1
2
3
4
5
6
7
use chrono::NaiveDate;

pub mod locales;

pub trait HumanDateParser {
    fn parse_relative(text: &str, now: NaiveDate) -> Option<NaiveDate>;
}