pub fn div_mod_units(
value: i64,
from_unit: TimeUnit,
to_unit: TimeUnit,
) -> Option<UnitQuotient>Expand description
Divides a value given in from_unit by to_unit, i.e. computes its
value in to_unit exactly (floor division). Returns None if the
quotient overflows i64.