periodSince method

Period periodSince(
  1. LocalDateTime localDateTime
)

Subtracts the specified date/time from this date/time, returning the result as a Period. Cognitively similar to: this - localDateTime.

The specified date/time must be in the same calendar system as this.

  • localDateTime: The date/time to subtract from this

Returns: The difference between the specified date/time and this one

Implementation

Period periodSince(LocalDateTime localDateTime) => Period.differenceBetweenDateTime(localDateTime, this);