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

TdIntervalSecond Structure
TdIntervalSecond Members
Overload List