Duration minus(Duration) method in Java with Examples
The minus(Duration) method of Duration Class in java.time package is used to get an immutable copy of this duration with the specified duration subtracted, passed as the parameter.Syntax: public Duration minus(Duration duration) Parameters: This method accepts a parameter duration which is the durat