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



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

Parameters

value
The timestamp value.

Return Value

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

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

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

The following are examples.

Result Precedes
true

Period: (2006-04-01 10:20:11, 2006-04-15 01:21:43)

Timestamp: 2006-04-15 01:21:43

true

Period: (2006-05-31 04:21:00, 2006-06-05 07:21:43)

Timestamp: 2006-10-01 00:00:00

false

Period:(2008-12-15 21:23:41, 2008-12-31 11:21:45)

Timestamp: 2008-12-20 23:21:00

false

Period:(2008-02-01 12:30:00, 2008-03-01 21:32:21)

Timestamp: 2008-02-01 12:30:00

false

Period: (2008-09-05 13:21:54, 2008-09-15 12:40:11)

Timestamp: 2008-01-17 00:00:00

Requirements

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

See Also

Reference

TdPeriodTimestamp Structure
TdPeriodTimestamp Members
Overload List