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



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

Parameters

value
The TdPeriodTimeWithTimeZone 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 TdPeriodTimeWithTimeZone.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

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

See Also

Reference

TdPeriodTimeWithTimeZone Structure
TdPeriodTimeWithTimeZone Members
Overload List