Struct chrono_humanize::HumanTime [−][src]
pub struct HumanTime(_);
Duration
wrapper that helps expressing the duration in human languages
Implementations
impl HumanTime
[src]
impl HumanTime
[src]pub fn now() -> Self
[src]
Create HumanTime
object that corresponds to the current point in time.
. Similar to chrono::Utc::now()
#[must_use]pub fn to_text_en(self, accuracy: Accuracy, tense: Tense) -> String
[src]
#[must_use]
pub fn to_text_en(self, accuracy: Accuracy, tense: Tense) -> StringGives English text representation of the HumanTime
with given accuracy
and ’tense`
pub fn is_zero(self) -> bool
[src]
Trait Implementations
impl From<SystemTime> for HumanTime
[src]
impl From<SystemTime> for HumanTime
[src]fn from(st: SystemTime) -> Self
[src]
impl PartialOrd<HumanTime> for HumanTime
[src]
impl PartialOrd<HumanTime> for HumanTime
[src]impl StructuralPartialEq for HumanTime
[src]
impl StructuralPartialEq for HumanTime
[src]Auto Trait Implementations
impl RefUnwindSafe for HumanTime
impl RefUnwindSafe for HumanTime
impl UnwindSafe for HumanTime
impl UnwindSafe for HumanTime