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



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

Parameters

left
An instance of TdTimestampWithTimeZone.
right
An instance of TdTimestampWithTimeZone.

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 TdTimestampWithTimeZone.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 TdTimestampWithTimeZone.CompareTo for more information.

Requirements

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

See Also

Reference

TdTimestampWithTimeZone Structure
TdTimestampWithTimeZone Members
CompareTo(TdTimestampWithTimeZone) Method