Subtracts a specified TimeSpan from this instance.
[C#] public static TimeSpan operator -( TimeSpan t ); [C++] public: static TimeSpan operator op_UnaryNegation( TimeSpan t ); [JScript] returnValue = -t;
[Visual Basic] In Visual Basic, you cannot use the operators defined by a type, nor override them or define your own.
[JScript] In JScript, you can use the operators defined by a type, but you cannot override them or define your own.
A new TimeSpan.
Exception Type | Condition |
---|---|
OverflowException | If t is less than TimeSpan.MinValue. |
This TimeSpan operator performs the arithmetic operation of subtracting a specified TimeSpan from the currrent instance and returns a new TimeSpan in ticks.
TimeSpan Structure | TimeSpan Members | System Namespace | MinValue | Ticks