1 unstable release
Uses old Rust 2015
0.0.0 | Jul 25, 2016 |
---|
#81 in #friendly
5KB
Chrono Humanize - Make your text time representation human appealing
Build status
branch | status |
---|---|
master | |
develop |
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);