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



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

Parameters

value
A TimeSpan.

Return Value

A TdIntervalDayToSecond interval.
Exceptions
ExceptionDescription
The resultant operation returns a value greater than the TdIntervalDayToSecond.MaxValue or less than the TdIntervalDayToSecond.MinValue.
Remarks
TimeSpan fractional seconds may be truncated during conversion into a TdIntervalDayToSecond interval. TimeSpan supports seven digits right of the decimal for fractional seconds, while TdIntervalDayToSecond 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

TdIntervalDayToSecond Structure
TdIntervalDayToSecond Members
Overload List