Send feedback on this topic.
Teradata.Client.Provider
Compare Method (TdTime)



Teradata.Client.Provider Namespace > TdTime Structure : Compare Method
An instance of TdTime.
An instance of TdTime.
Compares two instances of TdTime and returns a value indicating whether left is greater than, less than or equal to right.
Syntax
'Declaration
 
Public Shared Function Compare( _
   ByVal left As TdTime, _
   ByVal right As TdTime _
) As Integer
'Usage
 
Dim left As TdTime
Dim right As TdTime
Dim value As Integer
 
value = TdTime.Compare(left, right)
public static int Compare( 
   TdTime left,
   TdTime right
)
public:
static int Compare( 
   TdTime left,
   TdTime right
) 

Parameters

left
An instance of TdTime.
right
An instance of TdTime.

Return Value

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

The integer returned when left is compared to right indicates the following:

Return Value Meaning
Less than zero

left is less than right.

-or-

left is TdTime.Null.

Zero

left is equal to right.

-or-

left and right are Null.

Greater than zero

left is greater than right.

-or-

right is Null.

Refer to TdTime.CompareTo for more information on comparing TdTime values.

Requirements

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

See Also

Reference

TdTime Structure
TdTime Members
CompareTo(TdTime) Method