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



Teradata.Client.Provider Namespace > TdTimeWithTimeZone Structure : GreaterThan Method
An instance of TdTimeWithTimeZone.
An instance of TdTimeWithTimeZone.
Compares two TdTimeWithTimeZone to determine whether the left operand is greater than the right operand.
Syntax
'Declaration
 
Public Shared Function GreaterThan( _
   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.GreaterThan(left, right)
public static bool GreaterThan( 
   TdTimeWithTimeZone left,
   TdTimeWithTimeZone right
)
public:
static bool GreaterThan( 
   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 the right, false otherwise.

Return Value Description
true left and right are not TdTimeWithTimeZone.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.

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:

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

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdTimeWithTimeZone Structure
TdTimeWithTimeZone Members