/fuzzydate

A flexible date parser written in rust

Primary LanguageRustMIT LicenseMIT

FuzzyDate: Date Input for Humans

FuzzyDate Github Actions FuzzyDate on crates.io FuzzyDate on docs.rs

A flexible date parser library for Rust.

Usage

Put this in your Cargo.toml:

[dependencies]
fuzzydate = "0.2"

Example

use fuzzydate::parse;

fn main() {
    let input = "five days after this friday";
    let date = parse(input).unwrap();
    println!("{:?}", date);
}