[#BloombergLP-bdlt-Datetime-operator_plus_eq-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Datetime.adoc[Datetime]::operator&plus;&equals;
:relfileprefix: ../../../
:mrdocs:

Add the specified time interval `rhs` to this datetime&period;

== Synopsis

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

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

== Description

Add to 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 addition&period; The behavior is undefined unless the resulting value is valid for `Datetime` (see `isValid`)&period;

== Return Value

reference to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| time interval to add
|===


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