[This is preliminary documentation and is subject to change.]

Subtracts a specified TimeSpanFormattable from another specified TimeSpan.

Namespace: Tools
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public static TimeSpan operator -(
	TimeSpan t1,
	TimeSpanFormattable t2
)
Visual Basic
Public Shared Operator - ( _
	t1 As TimeSpan, _
	t2 As TimeSpanFormattable _
) As TimeSpan
Visual C++
public:
static TimeSpan operator -(
	TimeSpan t1, 
	TimeSpanFormattable t2
)
F#
static let inline (-)
        t1:TimeSpan * 
        t2:TimeSpanFormattable  : TimeSpan
JScript
JScript does not support overloaded operators.

Return Value

A TimeSpan whose value is the result of the value of t1 minus the value of t2.

Exceptions

ExceptionCondition
System..::..OverflowExceptionThe return value is less than MinValue or greater than MaxValue.

See Also