Send feedback on this topic.
Teradata.Client.Provider
GreaterThanOrEqual Method (TdPeriodDate)



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

Parameters

left
An instance of TdPeriodDate.
right
An instance of TdPeriodDate.

Return Value

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

In order to perform this comparison the beginning and ending bounds of the left and right operands are compared against each other. The left is greater than or equal to 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 or equal to the right, false otherwise.

Return Value Description
true left and right are not TdPeriodDate.Null and left is greater than or equal to right.
false

left and / or right is Null

-or-

left is less than 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 the right operand if GreaterThanOrEqual operator returns false.

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

TdPeriodDate Structure
TdPeriodDate Members