operator unary- method

Returns a new Duration representing this Duration negated.

Duration operator unary-( )

Returns a new Duration representing this Duration negated.

The returned Duration has the same length as this one, but will have the opposite sign of this one.