Subtract()

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

Subtract()

OutputVar := instance.Subtract(ts)

Subtract(ts)

Returns a new MfTimeSpan object whose Value is the difference between the specified MfTimeSpan instance and this instance.

Parameters

ts

ts - An instance of MfTimeSpan representing time interval to subtract.

Returns

Returns a new MfTimeSpan whose Value is the result of the Value of this instance minus the Value of ts.

Throws

Throws MfNullReferenceException if called as a static method.
Throws MfArgumentException if ts is not an instance of MfTimeSpan.
Throws MfOverflowException if the resulting MfTimeSpan is less than MinValue or greater then MaxValue.

Remarks

The time interval to be subtracted.