Mono Class Library: System.TimeSpan Overview | Members

System.TimeSpan.Subtract Method

Subtracts the value of the specified TimeSpan from the value of the current instance.

public TimeSpan Subtract (TimeSpan ts)

Parameters

ts
A TimeSpan whose value to subtract from the value of the current instance.

Returns

A TimeSpan whose value is equal to the value of the current instance minus the value of ts.

Exceptions

TypeReason
OverflowExceptionThe difference between the value of the current instance and ts is less than TimeSpan.MinValue or greater than TimeSpan.MaxValue.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0