[#BloombergLP-bdlt-operator_minus-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::operator&hyphen;
:relfileprefix: ../../
:mrdocs:

Return a `DatetimeInterval` object having a value that is the difference between the specified `lhs` (`Datetime`) and the specified `rhs` (`Datetime`)&period; If the `hour` attribute of either operand is 24, the result is the same as if that `hour` attribute is 0&period; The behavior is undefined unless the resulting value is in the valid range for a `DatetimeInterval` object&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;datetime&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlt/DatetimeInterval.adoc[bdlt::DatetimeInterval]
operator&hyphen;(
    xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& lhs,
    xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& rhs);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
