kxjtime / com.sandjelkovic.kxjtime / java.time.Duration / unaryMinus

unaryMinus

operator fun Duration.unaryMinus(): Duration (source)

Returns a copy of this duration with the length negated.

Return
Negated {@code Duration} based on receiver duration