Expand description
Functionality for rounding or truncating a DateTime
by a TimeDelta
.
Enumsยง
- An error from rounding by
TimeDelta
Traitsยง
- Extension trait for rounding or truncating a DateTime by a TimeDelta.
- Extension trait for subsecond rounding or truncation to a maximum number of digits. Rounding can be used to decrease the error variance when serializing/persisting to lower precision. Truncation is the default behavior in Chrono display formatting. Either can be used to guarantee equality (e.g. for testing) when round-tripping through a lower precision format.
Functionsยง
- duration_round ๐
- duration_trunc ๐
- span_for_digits ๐