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



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

Parameters

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

Return Value

A TdPeriodTimestamp is returned that is the result of subtracting the TimeSpan from the period.
Exceptions
ExceptionDescription
The result could not be represented as a TdPeriodTimestamp.
The TdPeriodTimestamp beginning bound is greater or equal to the ending bound of the period.
Remarks
Refer to TdPeriodTimestamp.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

TdPeriodTimestamp Structure
TdPeriodTimestamp Members
Overload List