Duration.abs

Returns a copy of this duration with a positive length. !(p) This method returns a positive duration by effectively removing the sign from any negative total length. For example, {@code PT-1.3S} will be returned as {@code PT1.3S}. !(p) This instance is immutable and unaffected by this method call.

@return a {@code Duration} based on this duration with an absolute length, not null @throws ArithmeticException if numeric overflow occurs

class Duration
abs
()

Meta