Skip to main content

Module pretty_duration

Module pretty_duration 

Source

Structs§

PrettyDuration
A duration parsed from a human-readable value.
PrettyDurationParseError

Enums§

DurationUnit

Functions§

format_duration 🔒
Render a duration as the largest units that divide it evenly, e.g. 90s as 1m30s. Zero has no components, so it is spelled out explicitly.