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



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

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

left and / or right is Null

-or-

left is greater 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 greater than the right operand if the LessThanOrEqual 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:

LessThanOrEqual Comparison Result
"23:00:11+05:00" LessThanOrEqual "23:10:00+05:00" true
"20:10:11+05:00" LessThanOrEqual "15:00:02-02:00" true
"23:10:11+01:00" LessThanOrEqual "21:10:11-01:00" true
"21:53:00-08:00" LessThanOrEqual "21:53:00-06:00" false
"21:53:00-09:00" LessThanOrEqual "07:53:00+01:00" true
"21:53:00-10:00" LessThanOrEqual "05:53:00-01: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