Struct time_humanize::HumanTime [−][src]
pub struct HumanTime { /* fields omitted */ }
Expand description
Duration
wrapper that helps expressing the duration in human languages
Implementations
Create HumanTime
object that corresponds to the current point in time.
. Similar to chrono::Utc::now()
Gives English text representation of the HumanTime
with given accuracy
and ’tense`
Return HumanTime
for given seconds from epoch start
Returns the unix timestamp till Duration
Instantiate HumanTime
from different time metrics
Instantiate HumanTime
for given seconds
Instantiate HumanTime
for given minutes
Instantiate HumanTime
for given hours
Instantiate HumanTime
for given weeks
Instantiate HumanTime
for given months
Instantiate HumanTime
for given years
Trait Implementations
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for HumanTime
impl UnwindSafe for HumanTime
Blanket Implementations
Mutably borrows from an owned value. Read more