operator - method

LocalDateTime operator -(
  1. Period period
)

Subtracts a period from a local date/time. Fields are subtracted in the order provided by the period. This is a convenience operator over the Minus(Period) method.

  • this: Initial local date and time
  • period: Period to subtract

Returns: The resulting local date and time

Implementation

LocalDateTime operator -(Period period) => subtract(period);