Send feedback on this topic.
Teradata.Client.Provider
Years Property (TdIntervalYear)



Teradata.Client.Provider Namespace > TdIntervalYear Structure : Years Property
The number of interval years is returned. The return value ranges from -9999 to 9999.
Syntax
'Declaration
 
Public ReadOnly Property Years As Integer
'Usage
 
Dim instance As TdIntervalYear
Dim value As Integer
 
value = instance.Years
public int Years {get;}
public:
property int Years {
   int get();
}
Exceptions
ExceptionDescription
This property is not available when this instance is TdIntervalYear.Null.
Remarks

A TdIntervalYear is represented as [-]years. The minus sign is optional and represents a negative interval of time. The years component represents years. The value of the Years property is the years component.

A negative interval will return all properties (Years and TotalMonths) as negative values.

Requirements
ProductVersionsPlatforms
.NET6, 7Windows, Linux, MacOS
.NET Framework4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdIntervalYear Structure
TdIntervalYear Members