xtd 0.2.0
Loading...
Searching...
No Matches

◆ subtract()

time_span xtd::time_span::subtract ( const time_span ts) const
noexcept

Returns a new xtd::time_span object whose value is the difference between the specified xtd::time_span object and this instance.

Parameters
tsThe time interval to be subtracted.
Returns
A new time interval whose value is the result of the value of this instance minus the value of ts.
Remarks
The return value is a new xtd::time_span; the original xtd::time_span is not modified.