Skip to content
/ jiffy Public

Human friendly time expressions

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

azzamsa/jiffy

Repository files navigation

jiffy


Representation for jiff objects in human languages.

Usage

use jiff::ToSpan;

let dt = jiff::Zoned::now().checked_add(35.days()).unwrap();
let ht = jiffy::HumanTime::from(dt);
let english = format!("{}", ht);
assert_eq!("in a month", english);

More Examples

To learn more, see other examples.

Acknowledgement

jiffy is a direct port of chrono-humanize.

About

Human friendly time expressions

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published