Skip to main content

Module time

Module time 

Source

Modules§

exponential_backoff

Enums§

Unit

Functions§

duration_since_epoch
format
now
now_millis
now_secs
parse_duration
parse_timepoint_ago
pretty
rfc2822_from_seconds
timepoint_ago
timepoint_from_epoch
timepoint_from_now
timepoint_has_passed
whole_and_frac
Return a pair of (whole part, frac part) from a duration where. The whole part is the largest Unit containing a non-zero value, the frac part is a rational remainder left over.
whole_unit
Return the largest Unit which represents the duration. The value is rounded-down, but never zero.