Skip to content

devinvs/fuzzydate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.3"

See the fuzzydate crate README for more information.

Example

use fuzzydate::parse;

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

fuzzydate-cli

This project also provides a small command-line interface for the fuzzydate library. See the crate-level READMEs for more information and examples:

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:00

See fuzzydate --help for options and usage.

Installation

cargo install fuzzydate-cli --locked

About

A flexible date parser written in rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages