[This is preliminary documentation and is subject to change.]
Subtracts a specified TimeSpanFormattable from another specified TimeSpan.
Namespace: ToolsAssembly: 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 |
|---|
|
Parameters
- t1
- Type: System..::..TimeSpan
A TimeSpan.
Return Value
A TimeSpan whose value is the result of the value of t1 minus the value of t2.
Exceptions
| Exception | Condition |
|---|---|
| System..::..OverflowException | The return value is less than MinValue or greater than MaxValue. |