operator-()

TimeSpan::operator-(TimeSpan) const method

Returns a new instance of TimeSpan class that represents a time interval which is the result of subtraction of the time interval represented by the specified object from the time interval represented by the current object.

TimeSpan System::TimeSpan::operator-(TimeSpan value) const

Arguments

ParameterTypeDescription
valueTimeSpanThe TimeSpan object that represents the time interval to subtract

Return Value

A new instance of TimeSpan class that represents a time interval which is the result of subtraction of the time interval represented by the specified object from the time interval represented by the current object.

TimeSpan::operator-() const method

Returns a new instance of TimeSpan object that represents negated value represented by the current TimeSpan object.

TimeSpan System::TimeSpan::operator-() const

See Also