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



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

Parameters

value
The TdTimestampWithTimeZone value.

Return Value

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

A false will be returned if value is TdTimestampWithTimeZone.Null.

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

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

The following are examples.

Result Precedes
true

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

Timestamp: 2006-04-15 01:21:43+08:00

true

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

Timestamp: 2006-10-01 01:00:00+09:00

false

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

Timestamp: 2008-12-20 22:21:00+00:00

false

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

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

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 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