Expand description
Utility functions for working with durations
Structs§
- Duration
AsStr - Duration
Visitor - a serde visitor for
chrono::Duration
- Human
Duration - NonZero
Duration AsStr
Enums§
- Absolute
OrRelative Time - 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