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



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

Parameters

left
An instance of TdTimeWithTimeZone.
right
An instance of TdTimeWithTimeZone.

Return Value

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

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 TdTimeWithTimeZone.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.

When comparing two time values the UTC offset is also included in the comparison. The UTC offset is subtracted from the time which results in the UTC time. The following table shows the result when comparing two TdTimeWtihTimeZone values:

GreaterThanOrEqual Comparison Result
"23:10:11+05:00" GreaterThanOrEqual "23:00:00+05:00" true
"23:10:11+05:00" GreaterThanOrEqual "15:00:02-02:00" true
"23:10:11+01:00" GreaterThanOrEqual "21:10:11-01:00" true
"21:53:00-08:00" GreaterThanOrEqual "21:53:00-06:00" true
"21:53:00-08:00" GreaterThanOrEqual "05:53:00-02:00" false
"21:53:00-08:00" GreaterThanOrEqual "05:53:00-00:00" true

Requirements

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

See Also

Reference

TdTimeWithTimeZone Structure
TdTimeWithTimeZone Members