Send feedback on this topic.
Teradata.Client.Provider
Months Property (TdIntervalYearToMonth)



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

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

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

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdIntervalYearToMonth Structure
TdIntervalYearToMonth Members