Send feedback on this topic.
Teradata.Client.Provider
Subtraction(TdTimestampWithTimeZone,TdIntervalYearToMonth) Operator



Teradata.Client.Provider Namespace > TdTimestampWithTimeZone Structure > Subtraction Operator : Subtraction(TdTimestampWithTimeZone,TdIntervalYearToMonth) Operator
A TdTimestampWithTimeZone.
A TdIntervalYearToMonth that will be subtracted from TdTimestampWithTimeZone.
Subtracts the specified TdIntervalYearToMonth from a TdTimestampWithTimeZone.
Syntax
'Declaration
 
Overloads Public Operator -( _
   ByVal timestamp As TdTimestampWithTimeZone, _
   ByVal interval As TdIntervalYearToMonth _
) As TdTimestampWithTimeZone
'Usage
 

Parameters

timestamp
A TdTimestampWithTimeZone.
interval
A TdIntervalYearToMonth that will be subtracted from TdTimestampWithTimeZone.

Return Value

A TdTimestampWithTimeZone is returned that is the result of subtracting the TdIntervalYearToMonth from a TdTimestampWithTimeZone.
Exceptions
ExceptionDescription
Unable to subtract the specified TdIntervalYearToMonth from the TdTimestampWithTimeZone.
Remarks

If either parameter is Null a TdTimestampWithTimeZone.Null will be returned.

The interval interval will be subtracted from the TdTimestampWithTimeZone. For example, if the TdIntervalYearToMonth value of "10-03" (10 years, 3 months) is subtracted from the TdTimestampWithTimeZone value of "2008-10-10 12:50:56.2123+08:00" the operation will result in a TdTimestampWithTimeZone value of "1998-07-10 12:50:56.2123+08:00".

Requirements

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

See Also

Reference

TdTimestampWithTimeZone Structure
TdTimestampWithTimeZone Members
Overload List