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



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

Parameters

value
The TdTime 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 the value is TdTime.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: (00:04:01, 03:04:15)

Time: 03:04:15

true

Period: (10:05:31, 12:06:05)

Time: 10:10:01

false

Period: (11:12:15, 20:12:31)

Time: 15:12:20

false

Period: (22:02:01, 23:03:01)

Time: 22:02:01

false

Period: (17:09:05, 21:09:15)

Time: 17:01:17

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