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



Teradata.Client.Provider Namespace > TdTimestamp Structure : Compare Method
An instance of TdTimestamp.
An instance of TdTimestamp.
Compares two instances of TdTimestamp 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 TdTimestamp, _
   ByVal right As TdTimestamp _
) As Integer
'Usage
 
Dim left As TdTimestamp
Dim right As TdTimestamp
Dim value As Integer
 
value = TdTimestamp.Compare(left, right)
public static int Compare( 
   TdTimestamp left,
   TdTimestamp right
)
public:
static int Compare( 
   TdTimestamp left,
   TdTimestamp right
) 

Parameters

left
An instance of TdTimestamp.
right
An instance of TdTimestamp.

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 TdTimestamp.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.

Requirements

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

See Also

Reference

TdTimestamp Structure
TdTimestamp Members
CompareTo(TdTimestamp) Method