[#BloombergLP-bdlt-Datetime-operator_minus_eq-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Datetime.adoc[Datetime]::operator&hyphen;&equals;
:relfileprefix: ../../../
:mrdocs:

Subtraction assignment operators

== Synopses

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

Subtract from this object the value of the specified `rhs` object, and return a reference providing modifiable access to this object&period; If `24 &equals;&equals; hour()` on entry, set the `hour` attribute of this object to 0 before performing the subtraction&period; The behavior is undefined unless the resulting value is valid for `Datetime` (see `isValid`)&period;


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

[.small]#xref:BloombergLP/bdlt/Datetime/operator_minus_eq-0b.adoc[_» more&period;&period;&period;_]#

Subtract a time interval from this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlt/Datetime.adoc[Datetime]&
xref:BloombergLP/bdlt/Datetime/operator_minus_eq-0f.adoc[operator&hyphen;&equals;](xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& rhs);
----

[.small]#xref:BloombergLP/bdlt/Datetime/operator_minus_eq-0f.adoc[_» more&period;&period;&period;_]#


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