diffWithPrecision method
Computes the difference with precision-aware truncation.
Implementation
int diffWithPrecision(Hora other, {required TimePrecision precision}) =>
truncateTo(precision)
.diff(
other.truncateTo(precision),
precision.toUnit,
)
.toInt();