Compare()

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

Compare()

OutputVar := MfTimeSpan.Compare(t1, t2)

Compare(t1, t2)

Compares two MfTimeSpan values and returns an integer that indicates whether the first value is shorter than, equal to, or longer than the second value.

Parameters

t1

An instance of MfTimeSpan representing the first time interval to compare.

t2

An instance of MfTimeSpan representing the second time interval to compare.

Returns

Returns -1 if t1 is shorter than t2.
Returns 0 if t1 is equal to t2.
Returns 1 if t1 is longer than t2.

Throws

Throws MfArgumentException if t1 or t2 is not instance of MfTimeSpan.

Remarks

Static method.