Send feedback on this topic.
Teradata.Client.Provider
Explicit Type Conversion(TdIntervalSecond,TimeSpan) Operator



Teradata.Client.Provider Namespace > TdIntervalSecond Structure > Explicit Type Conversion Operator : Explicit Type Conversion(TdIntervalSecond,TimeSpan) Operator
A TimeSpan.
Converts a TimeSpan to a TdIntervalSecond.
Syntax
'Declaration
 
Overloads Public Operator Narrowing CType( _
   ByVal value As TimeSpan _
) As TdIntervalSecond
'Usage
 
public TdIntervalSecond operator explicit( 
   TimeSpan value
)
public:
TdIntervalSecond operator explicit( 
   TimeSpan value
)

Parameters

value
A TimeSpan.

Return Value

A TdIntervalSecond interval.
Exceptions
ExceptionDescription
The resultant operation returns a value greater than the TdIntervalSecond.MaxValue or less than the TdIntervalSecond.MinValue.
Remarks
TimeSpan fractional seconds may be truncated during conversion into a TdIntervalSecond interval. TimeSpan supports seven digits right of the decimal for fractional seconds, while TdIntervalSecond supports six digits right of the decimal for fractional seconds (microseconds).
Requirements

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

See Also

Reference

TdIntervalSecond Structure
TdIntervalSecond Members
Overload List