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



Teradata.Client.Provider Namespace > TdIntervalYear Structure : TotalMonths Property
The total number of months represented by this instance.
Syntax
'Declaration
 
Public ReadOnly Property TotalMonths As Integer
'Usage
 
Dim instance As TdIntervalYear
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 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 TotalMonths property is the TdIntervalYear.Years * 12.

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

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

TdIntervalYear Structure
TdIntervalYear Members