Send feedback on this topic.
Teradata.Client.Provider
CompareTo(TdPeriodTime) Method



Teradata.Client.Provider Namespace > TdPeriodTime Structure > CompareTo Method : CompareTo(TdPeriodTime) Method
The TdPeriodTime to compare against.
Compares this instance to the specified TdPeriodTime other.
Syntax
'Declaration
 
Public Overloads Function CompareTo( _
   ByVal other As TdPeriodTime _
) As Integer
'Usage
 
Dim instance As TdPeriodTime
Dim other As TdPeriodTime
Dim value As Integer
 
value = instance.CompareTo(other)
public int CompareTo( 
   TdPeriodTime other
)
public:
int CompareTo( 
   TdPeriodTime other
) 

Parameters

other
The TdPeriodTime to compare against.

Return Value

The result of the comparison is returned as an integer.
Remarks

The integer returned when this instance is compared to other indicates the following:

Return Value Meaning
Less than zero

This instance is less than other.

-or-

This instance is TdPeriodTime.Null.


Comparison Algorithm

this.Begin < other.Begin OR (this.Begin == other.Begin AND this.End < other.End)

Zero

This instance is equal to other.

-or-

This instance and other are Null.


Comparison Algorithm

this.Begin == other.Begin AND this.End == other.End

Greater than zero

This instance is greater than other.

-or-

other is Null.


Comparison Algorithm

this.Begin > other.Begin OR (this.Begin == other.Begin AND this.End > other.End)

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdPeriodTime Structure
TdPeriodTime Members
Overload List