fn duration_unit_value(unit: Unit, value: i64) -> Result<SignedDuration, Error>Expand description
Returns the given parsed value, interpreted as the given unit, as a
SignedDuration.
If the given unit is not supported for signed durations (i.e., calendar
units), or if converting the given value to a SignedDuration for the
given units overflows, then an error is returned.