Chrono Humanize - Make your text time representation human appealing
Build status
branch | status |
---|---|
master | |
develop |
Quick Start
use ;
use HumanTime;
let dt = now + days;
let ht = from;
let english = format!;
assert_eq!;
Build status
branch | status |
---|---|
master | |
develop |
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);