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



Teradata.Client.Provider Namespace > TdIntervalYearToMonth Structure : TotalMonths Property
The total number of months represented by this instance.
Syntax
'Declaration
 
Public ReadOnly Property TotalMonths As Integer
'Usage
 
Dim instance As TdIntervalYearToMonth
Dim value As Integer
 
value = instance.TotalMonths
public int TotalMonths {get;}
public:
property int TotalMonths {
   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 TotalMonths property is the addition of the TdIntervalYearToMonth.Months and the TdIntervalYearToMonth.Years * 12.

A negative interval will return all properties (Years, Months 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

TdIntervalYearToMonth Structure
TdIntervalYearToMonth Members