chrono-humanize

Crates.iochrono-humanize
lib.rschrono-humanize
version0.2.3
sourcesrc
created_at2016-07-11 16:06:40.04479
updated_at2023-07-22 21:23:36.487637
descriptionHuman-friendly time expressions - similar to Python arrow.humanize
homepagehttps://gitlab.com/imp/chrono-humanize-rs
repositoryhttps://gitlab.com/imp/chrono-humanize-rs.git
max_upload_size
id5629
size79,562
Cyril Plisko (imp)

documentation

https://docs.rs/chrono-humanize

README

Chrono Humanize - Make your text time representation human appealing

Build status

branch status
master Build Status
develop Build Status

Quick Start

use chrono::{Local, Duration};
use chrono_humanize::HumanTime;

let dt = Local::now() + Duration::days(35);
let ht = HumanTime::from(dt);
let english = format!("{}", ht);
assert_eq!("in a month", english);
Commit count: 104

cargo fmt