Negate()

Namespace ›› System ›› MfTimeSpan ›› Methods ››
Parent Previous Next

Negate()

OutputVar := instance.Negate()

Negate()

Returns a new MfTimeSpan object whose value is the negated value of this instance.

Returns

Returns a new MfTimeSpan object with the same numeric value as this instance, but with the opposite sign.

Throws

Throws MfNullReferenceException if called as a static method.
Throws MfOverflowException if the negated value of this instance cannot be represented by a MfTimeSpan; that is, the value of this instance is MinValue.