Crate time_humanize[][src]

Expand description

time-humanize - A crate to display std::time::Duration in a human readable way

Example

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

let duration = Duration::from_secs(60);

println!("{}", HumanTime::from(duration));
println!("{}", HumanTime::from_seconds(-60));

Structs

Duration wrapper that helps expressing the duration in human languages

Enums

The accuracy of the representation

Indicates the time of the period in relation to the time of the utterance

Traits

Display Duration as human readable time