TimeSpanSubtraction Operator |
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static TimeSpan operator -(
TimeSpan t1,
TimeSpan t2
)
Parameters
- t1
- Type: SystemTimeSpan
The minuend. - t2
- Type: SystemTimeSpan
The subtrahend.
Return Value
Type:
TimeSpanAn object whose value is the result of the value of
t1 minus the value of
t2.
Exceptions Exception | Condition |
---|
OverflowException | The return value is less than MinValue or greater than MaxValue. |
See Also