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



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

Parameters

other
The TdPeriodTimeWithTimeZone 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 TdPeriodTimeWithTimeZone.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 instnace is greater than other.

-or-

This instance is Null.


Comparison Algorithm

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

Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdPeriodTimeWithTimeZone Structure
TdPeriodTimeWithTimeZone Members
Overload List