Note:
The following code example from the explanation is valid only if we static import java.time.temporal.ChronoUnit.MINUTES:
Code: Select all
// these two lines are equivalent
amount = start.until(end, MINUTES);
amount = MINUTES.between(start, end);
Regards,
Boris