Send feedback on this topic.
Teradata.Client.Provider
IntervalYearToMonth Method (TdPeriodTimestampWithTimeZone)



Teradata.Client.Provider Namespace > TdPeriodTimestampWithTimeZone Structure : IntervalYearToMonth Method
Calculates the span of time between the starting and ending bounds and returns the result in a TdIntervalYearToMonth structure.
Syntax
'Declaration
 
Public Function IntervalYearToMonth() As TdIntervalYearToMonth
'Usage
 
Dim instance As TdPeriodTimestampWithTimeZone
Dim value As TdIntervalYearToMonth
 
value = instance.IntervalYearToMonth()
public TdIntervalYearToMonth IntervalYearToMonth()
public:
TdIntervalYearToMonth IntervalYearToMonth(); 

Return Value

The TdIntervalYearToMonth value that contains the difference in years and months between the period ending bound and the period starting bound.
Exceptions
ExceptionDescription
This instance of TdPeriodTimestampWithTimeZone is null.
Remarks

The difference between the ending bound and the starting bound are calculated. Only the years and months are used in the calculation.

The TdIntervalYearToMonth supports only years and months. The days are discarded during the difference calculation.

Requirements

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

See Also

Reference

TdPeriodTimestampWithTimeZone Structure
TdPeriodTimestampWithTimeZone Members