Send feedback on this topic.
Teradata.Client.Provider
Subtract(TdIntervalYearToMonth) Method



Teradata.Client.Provider Namespace > TdPeriodTimestamp Structure > Subtract Method : Subtract(TdIntervalYearToMonth) Method
A TdIntervalYearToMonth that will be subtracted from this instance of TdPeriodTimestamp.
Subtracts the specified TdIntervalYearToMonth from this instance of TdPeriodTimestamp.
Syntax
'Declaration
 
Public Overloads Function Subtract( _
   ByVal interval As TdIntervalYearToMonth _
) As TdPeriodTimestamp
'Usage
 
Dim instance As TdPeriodTimestamp
Dim interval As TdIntervalYearToMonth
Dim value As TdPeriodTimestamp
 
value = instance.Subtract(interval)

Parameters

interval
A TdIntervalYearToMonth that will be subtracted from this instance of TdPeriodTimestamp.

Return Value

A TdPeriodTimestamp is returned that is the result of subtracting the TdIntervalYearToMonth from this instance of TdPeriodTimestamp.
Exceptions
ExceptionDescription
Unable to subtract the interval from this instance of TdPeriodTimestamp.
The TdPeriodTimestamp beginning bound is greater or equal to the ending bound of the period.
Remarks

If the interval or this instance is Null a TdPeriodTimestamp.Null will be returned.

The interval interval will be subtracted from TdPeriodTimestamp. For example, if the TdPeriodTimestamp is ("2007-10-04 12:50:56", and "2007-11-01 13:23:54") and the interval is "5-10" (5 years, 10 months) the operation will result in "2001-12-04 12:50:56", "2002-01-01 13:23:54").

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

TdPeriodTimestamp Structure
TdPeriodTimestamp Members
Overload List