Send feedback on this topic.
Teradata.Client.Provider
Less Than or Equal Operator (TdPeriodTimeWithTimeZone)



Teradata.Client.Provider Namespace > TdPeriodTimeWithTimeZone Structure : Less Than or Equal Operator
An instance of TdPeriodTimeWithTimeZone.
An instance of TdPeriodTimeWithTimeZone.
Compares two TdPeriodTimeWithTimeZone structures to determine whether the left is less than or equal to the right operand.
Syntax
'Declaration
 
Public Operator <=( _
   ByVal left As TdPeriodTimeWithTimeZone, _
   ByVal right As TdPeriodTimeWithTimeZone _
) As Boolean
'Usage
 
public bool operator <=( 
   TdPeriodTimeWithTimeZone left,
   TdPeriodTimeWithTimeZone right
)
public:
bool operator <=( 
   TdPeriodTimeWithTimeZone left,
   TdPeriodTimeWithTimeZone right
)

Parameters

left
An instance of TdPeriodTimeWithTimeZone.
right
An instance of TdPeriodTimeWithTimeZone.

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 equal to or less than the right if the following is true:

    left.Begin < right.Begin || (left.Begin == right.Begin && left.End <= right.End)

true if the left is less than or equal to the right, false otherwise.

Return Value Description
true left and right are not TdPeriodTimeWithTimeZone.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 "<=" operator returns false.

Requirements

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

See Also

Reference

TdPeriodTimeWithTimeZone Structure
TdPeriodTimeWithTimeZone Members