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



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

Parameters

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

Return Value

A TdPeriodTime is returned that is the result of subtracting the TimeSpan from the TdPeriodTime.
Exceptions
ExceptionDescription
The result could not be represented as a TdPeriodTime.
Remarks
Refer to TdPeriodTime.Subtract and Period Arithmetic for additional information.
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

TdPeriodTime Structure
TdPeriodTime Members
Overload List