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



Teradata.Client.Provider Namespace > TdPeriodTimestampWithTimeZone Structure : GreaterThan Method
An instance of TdPeriodTimestampWithTimeZone.
An instance of TdPeriodTimestampWithTimeZone.
Compares two TdPeriodTimestampWithTimeZone structures to determine whether the left operand is greater than the right operand.
Syntax
'Declaration
 
Public Shared Function GreaterThan( _
   ByVal left As TdPeriodTimestampWithTimeZone, _
   ByVal right As TdPeriodTimestampWithTimeZone _
) As Boolean
'Usage
 
Dim left As TdPeriodTimestampWithTimeZone
Dim right As TdPeriodTimestampWithTimeZone
Dim value As Boolean
 
value = TdPeriodTimestampWithTimeZone.GreaterThan(left, right)
public static bool GreaterThan( 
   TdPeriodTimestampWithTimeZone left,
   TdPeriodTimestampWithTimeZone right
)
public:
static bool GreaterThan( 
   TdPeriodTimestampWithTimeZone left,
   TdPeriodTimestampWithTimeZone right
) 

Parameters

left
An instance of TdPeriodTimestampWithTimeZone.
right
An instance of TdPeriodTimestampWithTimeZone.

Return Value

A boolean is returned that indicates the result of the comparison.
Remarks

The beginning and ending bounds between the left and right operands are compared to determine whether the left period is greater than the right. The left is greater than the right if the following is true:

    left.Begin > right.Begin OR (left.Begin == right.Begin AND left.End > right.End)

The value returned is true if the left is greater than the right, false otherwise.

Return Value Description
true left and right are not TdPeriodTimestampWithTimeZone.Null and left is greater than right.
false

left and / or right is Null

-or-

left is less than or equal to right.

Comparison operators always returns false if one of the operands is Null. Therefore, you must not assume that the reverse condition is true. For example you cannot assume that the left operand is less than or equal to the right operand if the GreaterThan operator returns false.

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