minus static method

LocalDateTime minus(
  1. LocalDateTime localDateTime,
  2. Period period
)

Subtracts the specified period from the date and time. Friendly alternative to operator-().

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

Returns: The resulting local date and time

Implementation

static LocalDateTime minus(LocalDateTime localDateTime, Period period) => localDateTime.subtract(period);