FuzzyDate: Date Input for Humans
A flexible date parser library for Rust.
Put this in your Cargo.toml:
[dependencies] fuzzydate = "0.4"See the fuzzydate crate README for more information.
use fuzzydate::parse; fn main() { let input = "five days after this friday"; let date = parse(input).unwrap(); println!("{:?}", date); }This project also provides a small command-line interface for the fuzzydate library. See the crate-level READMEs for more information and examples:
- Library (fuzzydate): fuzzydate/README.md
- CLI (fuzzydate-cli): fuzzydate-cli/README.md
The CLI parses human-friendly date expressions and prints a chrono-formatted datetime. For example:
$ fuzzydate 5 minutes after friday at noon 2025-11-28T12:05:00-08:00See fuzzydate --help for options and usage.
cargo install fuzzydate-cli --lockedIssues and contributions are welcome! Please open issues for bugs or desired features with a short description of the desired/expected behavior.