Send feedback on this topic.
Teradata.Client.Provider
Subtraction(TdPeriodDate,TimeSpan) Operator



Teradata.Client.Provider Namespace > TdPeriodDate Structure > Subtraction Operator : Subtraction(TdPeriodDate,TimeSpan) Operator
A TdPeriodDate.
A TimeSpan that will be subtracted from the TdPeriodDate
Subtracts the specified TimeSpan from a TdPeriodDate.
Syntax
'Declaration
 
Overloads Public Operator -( _
   ByVal period As TdPeriodDate, _
   ByVal timeSpan As TimeSpan _
) As TdPeriodDate
'Usage
 
public TdPeriodDate operator -( 
   TdPeriodDate period,
   TimeSpan timeSpan
)
public:
TdPeriodDate operator -( 
   TdPeriodDate period,
   TimeSpan timeSpan
)

Parameters

period
A TdPeriodDate.
timeSpan
A TimeSpan that will be subtracted from the TdPeriodDate

Return Value

A TdPeriodDate is returned that is the result of subtracting the TimeSpan from the TdDate.
Exceptions
ExceptionDescription
The result could not be represented as a TdPeriodDate.
The TdPeriodDate beginning bound is greater or equal to the ending bound of the period.
Remarks
Refer to TdPeriodDate.Subtract and Period Arithmetic for additional information.
Requirements

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

See Also

Reference

TdPeriodDate Structure
TdPeriodDate Members
Overload List