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



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

Parameters

value
A TdIntervalMonth interval.

Return Value

A TdIntervalYear.
Remarks

Truncation will occur while converting TdIntervalMonth if the months interval component is not divisible by 12 with a remainder of 0.

For example a value of TdIntervalMonth of 49 will result in a TdIntervalYear value of '4' resulting in the truncation of 1 month (49/12 = 4 with a remainder of 1).

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

TdIntervalMonth Structure
TdIntervalMonth Members
Overload List