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



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

Parameters

value
The TdPeriodTimestampWithTimeZone 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 TdPeriodTimestampWithTimeZone.Null.

This instance will precede the value if the ending bound of the this instance is less than or equal to the starting bound of the value.

It is not required that the UTC Offset of this instance and value be the same. The UTC representation of the bounds will be used to determine whether this instance precedes the value.

In the following examples consider the Left operand to be this instance, and the Right 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 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdPeriodTimestampWithTimeZone Structure
TdPeriodTimestampWithTimeZone Members
Overload List