Module duration

Source
Expand description

Utility functions for working with durations

Structs§

DurationAsStr
DurationVisitor
a serde visitor for chrono::Duration
HumanDuration
NonZeroDurationAsStr

Enums§

AbsoluteOrRelativeTime
Helper struct to parse from either an absolute ISO 8601 datetime, or some duration relative to now (e.g. +1h, -3d, etc.)

Functions§

deserialize_duration
A serde deserialize function for chrono::Duration
deserialize_duration_opt
format_nonzero_duration
parse_duration
Parse a duration string into a chrono::Duration.
serialize_duration
A serde serializer function for chrono::Duration
serialize_duration_opt