Send feedback on this topic.
Teradata.Client.Provider
LessThan Method (TdPeriodTimestampWithTimeZone)



Teradata.Client.Provider Namespace > TdPeriodTimestampWithTimeZone Structure : LessThan Method
An instance of TdPeriodTimestampWithTimeZone.
An instance of TdPeriodTimestampWithTimeZone.
Compares two TdPeriodTimestampWithTimeZone structures to determine whether the left operand is less than the right operand.
Syntax
'Declaration
 
Public Shared Function LessThan( _
   ByVal left As TdPeriodTimestampWithTimeZone, _
   ByVal right As TdPeriodTimestampWithTimeZone _
) As Boolean
'Usage
 
Dim left As TdPeriodTimestampWithTimeZone
Dim right As TdPeriodTimestampWithTimeZone
Dim value As Boolean
 
value = TdPeriodTimestampWithTimeZone.LessThan(left, right)

Parameters

left
An instance of TdPeriodTimestampWithTimeZone.
right
An instance of TdPeriodTimestampWithTimeZone.

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

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

The value returned is true if the left is less than the right, false otherwise.

Return Value Description
true left and right are not TdPeriodTimestampWithTimeZone.Null and left is less than right.
false

left and / or right is Null

-or-

left is greater 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 greater than or equal the right operand if the LessThan operator returns 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

TdPeriodTimestampWithTimeZone Structure
TdPeriodTimestampWithTimeZone Members