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



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

Parameters

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

Return Value

A TdTimestamp is returned that is the result of subtracting the TdIntervalYearToMonth from this instance of TdTimestamp.
Exceptions
ExceptionDescription
Unable to subtract the specified TdIntervalYearToMonth from this instance of TdTimestamp.
Remarks

If interval or this instance of TdTimestamp is Null a TdTimestamp.Null will be returned.

The interval interval will be subtracted from this instance of TdTimestamp. For example, if the TdIntervalYearToMonth value of "10-03" (10 years, 3 months) is subtracted from the TdTimestamp value of "2008-10-10 12:50:56.2123" the operation will result in a TdTimestamp value of "1998-07-10 12:50:56" with 212300 microseconds.

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdTimestamp Structure
TdTimestamp Members
Overload List