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



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

Parameters

value
A TimeSpan.

Return Value

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

TdIntervalHourToSecond Structure
TdIntervalHourToSecond Members
Overload List