periodUntil method
Subtracts the specified date/time from this date/time, returning the result as a Period.
Cognitively similar to: localDateTime - this
.
The specified date/time must be in the same calendar system as this.
localDateTime
: The date/time to subtract this from
Returns: The difference between the specified date/time and this one
Implementation
Period periodUntil(LocalDateTime localDateTime) => Period.differenceBetweenDateTime(this, localDateTime);