time-humanize

Crates.iotime-humanize
lib.rstime-humanize
version0.1.3
sourcesrc
created_at2021-11-16 21:44:15.092466
updated_at2021-11-21 19:01:50.4533
descriptionDisplay time in a human readable manner.
homepagehttps://hallerpatrick.github.io/time-humanize/time_humanize/
repositoryhttps://github.com/HallerPatrick/time-humanize
max_upload_size
id483002
size47,565
Patrick Haller (HallerPatrick)

documentation

README

time-humanize

A rust crate that displays duration in a human readable format.

This project is a port of chrono-humanize-rs and now has 0 dependencies.

Usage

use std::time::Duration;
use time_humanize::HumanTime;


let duration = Duration::from_secs(60);
let human_time = HumanTime::from(duration);
println!("{}", human_time);
Commit count: 11

cargo fmt