| Crates.io | time-humanize |
| lib.rs | time-humanize |
| version | 0.1.3 |
| created_at | 2021-11-16 21:44:15.092466+00 |
| updated_at | 2021-11-21 19:01:50.4533+00 |
| description | Display time in a human readable manner. |
| homepage | https://hallerpatrick.github.io/time-humanize/time_humanize/ |
| repository | https://github.com/HallerPatrick/time-humanize |
| max_upload_size | |
| id | 483002 |
| size | 47,565 |
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.
use std::time::Duration;
use time_humanize::HumanTime;
let duration = Duration::from_secs(60);
let human_time = HumanTime::from(duration);
println!("{}", human_time);