Duration.minusSeconds

Returns a copy of this duration with the specified duration _in seconds subtracted. !(p) This instance is immutable and unaffected by this method call.

@param secondsToSubtract the seconds to subtract, positive or negative @return a {@code Duration} based on this duration with the specified seconds subtracted, not null @throws ArithmeticException if numeric overflow occurs

class Duration
minusSeconds

Meta