Send feedback on this topic.
Teradata.Client.Provider
Precedes(TdPeriodTime) Method



Teradata.Client.Provider Namespace > TdPeriodTime Structure > Precedes Method : Precedes(TdPeriodTime) Method
The TdPeriodTime operand.
Indicates whether this instance precedes the period value.
Syntax
'Declaration
 
Public Overloads Function Precedes( _
   ByVal value As TdPeriodTime _
) As Boolean
'Usage
 
Dim instance As TdPeriodTime
Dim value As TdPeriodTime
Dim value As Boolean
 
value = instance.Precedes(value)
public bool Precedes( 
   TdPeriodTime value
)
public:
bool Precedes( 
   TdPeriodTime value
) 

Parameters

value
The TdPeriodTime operand.

Return Value

A true is returned when this instance precedes the value, otherwise a false is returned.
Remarks

A false will be returned if the value is TdPeriodTime.Null.

This instance precedes the value if the ending bound of this instance is less than or equal to the beginning bound of the value.

In the following examples consider the Left operand to be this instance, and the Right operand as the value. The left and right operands are defined as (bL, eL) and (bR, eR), respectively.

Example Comments
            |--------|--------|
            bL     eL bR      eR
            
Precedes = true
            |------|-----|------|
            bL     eL    bR     eR
            
Precedes = true
            |------|-----|-------|
            bL     bR    eL      eR
            

Precedes = false

There is an intersection between the operands; therfore, the left does not precede the right.

            |-------|--------|
            bR    eR bL      eL
            

Precedes = false

The left operand appears after the right operand.

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

TdPeriodTime Structure
TdPeriodTime Members
Overload List