Add()

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

Add()

OutputVar := MfTimeSpan.Add(ts)

Add(ts)

Returns a new MfTimeSpan object whose value is the sum of the specified MfTimeSpan object and this instance.

Parameters

ts

An instance of MfTimeSpan representing time interval to add.

Returns

Returns a new object that represents the value of this instance plus 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 than MaxValue.

Remarks

The return value must be between MinValue and MaxValue; Otherwise, an exception is thrown.

The return value is a new MfTimeSpan; the original MfTimeSpan is not modified.