Send feedback on this topic.
Teradata.Client.Provider
Subtract(TdIntervalDayToSecond) Method



Teradata.Client.Provider Namespace > TdPeriodDate Structure > Subtract Method : Subtract(TdIntervalDayToSecond) Method
The number of days from this TdIntervalDayToSecond interval will be subtracted from this instance of TdPeriodDate.
Subtracts the specified TdIntervalDayToSecond from this instance of TdPeriodDate.
Syntax
'Declaration
 
Public Overloads Function Subtract( _
   ByVal interval As TdIntervalDayToSecond _
) As TdPeriodDate
'Usage
 
Dim instance As TdPeriodDate
Dim interval As TdIntervalDayToSecond
Dim value As TdPeriodDate
 
value = instance.Subtract(interval)
public TdPeriodDate Subtract( 
   TdIntervalDayToSecond interval
)
public:
TdPeriodDate Subtract( 
   TdIntervalDayToSecond interval
) 

Parameters

interval
The number of days from this TdIntervalDayToSecond interval will be subtracted from this instance of TdPeriodDate.

Return Value

A TdPeriodDate is returned that is the result of subtracting the TdIntervalDayToSecond from this instance of TdPeriodDate.
Exceptions
ExceptionDescription
Unable to subtract the specified TdIntervalDayToSecond from this instance of TdPeriodDate.
The TdPeriodDate beginning bound is greater or equal to the ending bound of the period.
Remarks

If interval or this instance of TdPeriodDate is Null a TdPeriodDate.Null will be returned.

Only the TdIntervalDayToSecond.Days component of the interval will be subtracted from this period.

When this operation is performed, the number of days is subtracted from both the beginning and ending bounds. For example, if the period is ('2007-10-04', '2007-11-01') and the number of days is 2 the subtract operation will result in ('2007-10-02', '2007-10-30').

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

TdPeriodDate Structure
TdPeriodDate Members
Overload List