[#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;`

Add the specified `numDays` to the specified `date` (same as `date &plus; numDays`)&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 value that is later by the specified (signed) `numDays` from the specified `date`&period; The behavior is undefined unless the resulting value falls within the range of dates supported by this class (see `isValidYearMonthDay`)&period; Note that `numDays` may be negative&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 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;


[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 a `Datetime` object having a value that is the sum of the specified `lhs` (`Datetime`) and the specified `rhs` (`bsls&colon;&colon;TimeInterval`)&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;


[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 a `Datetime` object having a value that is the sum of the specified `lhs` (`DatetimeInterval`) and the specified `rhs` (`Datetime`)&period; If `24 &equals;&equals; rhs&period;hour()`, the result is the same as if the `hour` attribute of `rhs` is 0&period; The behavior is undefined unless the resulting value is in the valid range for a `Datetime` object&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 a `DatetimeInterval` object whose value is the sum of the specified `lhs` and `rhs` time intervals&period; The behavior is undefined unless the resulting time interval value is valid (i&period;e&period;, the days field must not overflow a 32&hyphen;bit integer)&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 a `Datetime` object having a value that is the sum of the specified `lhs` (`bsls&colon;&colon;TimeInterval`) and the specified `rhs` (`Datetime`)&period; If `24 &equals;&equals; rhs&period;hour()`, the result is the same as if the `hour` attribute of `rhs` is 0&period; The behavior is undefined unless the resulting value is in the valid range for a `Datetime` object&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;_]#


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