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



Teradata.Client.Provider Namespace > TdPeriodTimestampWithTimeZone Structure > Subtract Method : Subtract(TimeSpan) Method
The TimeSpan that will be subtracted.
The specified TimeSpan will be subtracted from this instance of TdPeriodTimestampWithTimeZone.
Syntax
'Declaration
 
Public Overloads Function Subtract( _
   ByVal timeSpan As TimeSpan _
) As TdPeriodTimestampWithTimeZone
'Usage
 
Dim instance As TdPeriodTimestampWithTimeZone
Dim timeSpan As TimeSpan
Dim value As TdPeriodTimestampWithTimeZone
 
value = instance.Subtract(timeSpan)
public:
TdPeriodTimestampWithTimeZone Subtract( 
   TimeSpan timeSpan
) 

Parameters

timeSpan
The TimeSpan that will be subtracted.

Return Value

A TdPeriodTimestampWithTimeZone is returned that is the result of the TimeSpan subtracted from this instance of TdPeriodTimestampWithTimeZone.
Exceptions
ExceptionDescription
The result could not be represented as a TdPeriodTimestampWithTimeZone.
The TdPeriodTimestampWithTimeZone beginning bound is greater or equal to the ending bound of the period.
Remarks

If this instance of TdPeriodTimestampWithTimeZone is Null a TdDate.Null will be returned.

The number of days will be calculated from the components that were specified when TimeSpan was initialized. Therefore, if a TimeSpan was initialized as new TimeSpan(47, 60, 20) (47 hours, 60 minutes, 20 seconds), the number of days that will be subtracted from TdPeriodDate will be 2 days and 20 seconds.

Refer to Period Arithmetic for additional information.

Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdPeriodTimestampWithTimeZone Structure
TdPeriodTimestampWithTimeZone Members
Overload List