ract a Period instance date = date.minus(duration); // subtract a Duration instance date = date.minus(workingDays(6)); // example user-written workingDays method
Note that calling {@code plus} followed by {@code minus} is not guaranteed toreturn the same date-time.
Specification for implementors
Implementations must not alter either this object. Instead, an adjusted copy of the original must be returned. This provides equivalent, safe behavior for immutable and mutable implementations.
@param amount the amount to subtract, not null
@return an object of the same type with the specified adjustment made, not null
@throws DateTimeException if the subtraction cannot be made
@throws ArithmeticException if numeric overflow occurs