[#BloombergLP-bdlt-operator_minus-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::operator‐ :relfileprefix: ../../ :mrdocs: Return the difference between the specified `lhs` and `rhs` intervals. == Synopsis Declared in `<bdlt_datetimeinterval.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/DatetimeInterval.adoc[bdlt::DatetimeInterval] operator‐( xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval] const& lhs, xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval] const& rhs); ---- == Description 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). == Return Value the difference between `lhs` and `rhs` == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | left‐hand time interval | *rhs* | right‐hand time interval |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#