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



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

Parameters

other
The TdPeriodTimestampWithTimeZone 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 TdPeriodTimestampWithTimeZone.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

TdPeriodTimestampWithTimeZone Structure
TdPeriodTimestampWithTimeZone Members
Overload List