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
ProductVersionsPlatforms
.NET6, 7Windows, Linux, MacOS
.NET Framework4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdPeriodTimestamp Structure
TdPeriodTimestamp Members
Overload List