xtd 0.2.0
Loading...
Searching...
No Matches

◆ negate()

time_span xtd::time_span::negate ( ) const

Returns a new xtd::time_spam object whose value is the negated value of this instance.

Returns
A new object with the same numeric value as this instance, but with the opposite sign.
Exceptions
xtd::overflow_exceptionThe negated value of this instance cannot be represented by a xtd::time_spam; that is, the value of this instance is xtd::time_spam::min_value.