time_humanize/lib.rs
1//! time-humanize - A crate to display `std::time::Duration` in a human readable way
2//!
3//! ## Example
4//! ```rust
5//! use std::time::Duration;
6//! use time_humanize::HumanTime;
7//!
8//! let duration = Duration::from_secs(60);
9//!
10//! println!("{}", HumanTime::from(duration));
11//! println!("{}", HumanTime::from_seconds(-60));
12//!
13//! ```
14//!
15mod humantime;
16
17pub use crate::humantime::{Accuracy, HumanTime, Humanize, Tense};