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

Addition operators

== Synopses

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

Return the date that is later by `numDays` from the specified `date`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlt/Date.adoc[bdlt::Date]
xref:BloombergLP/bdlt/operator_plus-06b.adoc[operator&plus;](
    int numDays,
    xref:BloombergLP/bdlt/Date.adoc[Date] const& date);
----

[.small]#xref:BloombergLP/bdlt/operator_plus-06b.adoc[_» more&period;&period;&period;_]#

Return the date that is later by `numDays` from the specified `date`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlt/Date.adoc[bdlt::Date]
xref:BloombergLP/bdlt/operator_plus-04.adoc[operator&plus;](
    xref:BloombergLP/bdlt/Date.adoc[Date] const& date,
    int numDays);
----

[.small]#xref:BloombergLP/bdlt/operator_plus-04.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:BloombergLP/bdlt/operator_plus-09.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:BloombergLP/bdlt/operator_plus-07.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:BloombergLP/bdlt/operator_plus-087.adoc[_» more&period;&period;&period;_]#

Return the sum of the specified `lhs` and `rhs` time intervals&period;


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

[.small]#xref:BloombergLP/bdlt/operator_plus-0d.adoc[_» more&period;&period;&period;_]#

Return a `Time` value that is the sum of the specified `lhs` datetime interval and the specified `rhs` time&period;


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

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

Return a `Time` value that is the sum of the specified `lhs` time and the specified `rhs` datetime interval&period;


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

[.small]#xref:BloombergLP/bdlt/operator_plus-082.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:BloombergLP/bdlt/operator_plus-069.adoc[_» more&period;&period;&period;_]#

== Return Value

* date later by `numDays` from `date`
* a `Datetime` that is the sum of the operands
* the sum of `lhs` and `rhs`
* a `Time` value that is the sum of `lhs` and `rhs`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numDays*
| signed number of days to add
| *date*
| base date
| *lhs*
| datetime operand
| *rhs*
| datetime interval to add
|===


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