Subtraction Operator

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Subtracts a specified TimeSpan from another specified TimeSpan.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static TimeSpan operator -(
	TimeSpan t1,
	TimeSpan t2
)

Parameters

t1
Type: System..::..TimeSpan
The minuend.
t2
Type: System..::..TimeSpan
The subtrahend.

Return Value

Type: System..::..TimeSpan
An object whose value is the result of the value of t1 minus the value of t2.

Show: