Return the difference between the specified lhs and rhs intervals.
Declared in <bdlt_datetimeinterval.h>
bdlt::DatetimeInterval
operator-(
DatetimeInterval const& lhs,
DatetimeInterval const& rhs);
Return a DatetimeInterval object whose value is the difference between the specified lhs and rhs time intervals. The behavior is undefined unless the resulting time interval value is valid (i.e., the days field must not overflow a 32-bit integer).
the difference between lhs and rhs
| Name | Description |
|---|---|
| lhs | left-hand time interval |
| rhs | right-hand time interval |