Module duration

Source

Constants§

DAY_DURATION
HOUR_DURATION
MILLI_DURATION
MINUTE_DURATION
SECOND_DURATION
WEEK_DURATION
YEAR_DURATION

Functions§

display_duration
display Duration in Prometheus format
parse_duration
parses a string into a Duration, assuming that a year always has 365d, a week always has 7d, and a day always has 24h.