human-date-parser 0.3.1

Parses strings that express dates in a human way into ones usable by code.
Documentation
1
2
3
4
5
6
7
8
9
// The example from the README
use human_date_parser::from_human_time;
use chrono::Local;

fn main() {
    let now = Local::now().naive_local();
    let date = from_human_time("Last Friday at 19:45", now).unwrap();
    println!("{date}");
}