System::TimeSpan::Subtract method

TimeSpan::Subtract 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::Subtract(TimeSpan value) const
ParameterTypeDescription
valueTimeSpanThe TimeSpan object that represents the time interval to subtract

ReturnValue

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.

See Also