[#BloombergLP-bdlt-operator_plus-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::operator&plus;
:relfileprefix: ../../
:mrdocs:

Return the sum of a datetime and a datetime interval&period;

== Synopsis

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

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

== Description

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

== Return Value

a `Datetime` that is the sum of the operands

== Parameters

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


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