Temporal.until, . " " (doc), from , .
long wholeAmount = from.until(value, incrementUnitType)
return value.equals(from.plus(wholeAmount, incrementUnitType));
, , (, 28, 29, 30 31 ). until plus (.. temporal.until(temporal.plus(1,ChronoUnit.MONTHS),ChronoUnit.MONTHS) 0, ).
doc:
. , - 31 , . . , .
, wholeAmount + 1, , .
long wholeAmount = from.until(value, incrementUnitType)
return value.equals(from.plus(wholeAmount, incrementUnitType)) || value.equals(from.plus(wholeAmount + 1, incrementUnitType));
Temporal , , ( , incrementUnitType ). , , .