subtract method

LocalDateTime subtract(
  1. Period period
)

Subtracts a period from a local date/time. Fields are subtracted in the order provided by the period.

  • period: Period to subtract

Returns: The resulting local date and time

Implementation

LocalDateTime subtract(Period period) {
  Preconditions.checkNotNull(period, 'period');
  return IPeriod.addDateTimeTo(period, calendarDate, clockTime, -1);
}