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§
- Human
Time Duration
wrapper that helps expressing the duration in human languages
Enums§
- Accuracy
- The accuracy of the representation
- Tense
- Indicates the time of the period in relation to the time of the utterance
Traits§
- Humanize
- Display
Duration
as human readable time