Crates.io | jiffy |
lib.rs | jiffy |
version | 0.1.1 |
source | src |
created_at | 2024-08-07 23:36:54.905319 |
updated_at | 2024-08-07 23:36:54.905319 |
description | Human-friendly time expressions |
homepage | https://github.com/azzamsa/jiffy |
repository | https://github.com/azzamsa/jiffy-rs |
max_upload_size | |
id | 1328902 |
size | 81,401 |
use jiff::{Local, Duration};
use jiffy::HumanTime;
let dt = jiff::Zoned::now() + Duration::days(35);
let ht = HumanTime::from(dt);
let english = format!("{}", ht);
assert_eq!("in a month", english);