[#BloombergLP-bdlt-operator_plus-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::operator+ :relfileprefix: ../../ :mrdocs: Addition operators == Synopses Declared in `<bdlt_date.h>` Add the specified `numDays` to the specified `date` (same as `date + numDays`). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] xref:BloombergLP/bdlt/operator_plus-06b.adoc[operator+]( int numDays, xref:BloombergLP/bdlt/Date.adoc[Date] const& date); ---- [.small]#xref:BloombergLP/bdlt/operator_plus-06b.adoc[_» more..._]# Return the date value that is later by the specified (signed) `numDays` from the specified `date`. The behavior is undefined unless the resulting value falls within the range of dates supported by this class (see `isValidYearMonthDay`). Note that `numDays` may be negative. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] xref:BloombergLP/bdlt/operator_plus-04.adoc[operator+]( xref:BloombergLP/bdlt/Date.adoc[Date] const& date, int numDays); ---- [.small]#xref:BloombergLP/bdlt/operator_plus-04.adoc[_» more..._]# Return a `Datetime` object having a value that is the sum of the specified `lhs` (`Datetime`) and the specified `rhs` (`DatetimeInterval`). If `24 == lhs.hour()`, the result is the same as if the `hour` attribute of `lhs` is 0. The behavior is undefined unless the resulting value is in the valid range for a `Datetime` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] xref:BloombergLP/bdlt/operator_plus-09.adoc[operator+]( 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..._]# Return a `Datetime` object having a value that is the sum of the specified `lhs` (`Datetime`) and the specified `rhs` (`bsls::TimeInterval`). If `24 == lhs.hour()`, the result is the same as if the `hour` attribute of `lhs` is 0. The behavior is undefined unless the resulting value is in the valid range for a `Datetime` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] xref:BloombergLP/bdlt/operator_plus-07.adoc[operator+]( 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..._]# Return a `Datetime` object having a value that is the sum of the specified `lhs` (`DatetimeInterval`) and the specified `rhs` (`Datetime`). If `24 == rhs.hour()`, the result is the same as if the `hour` attribute of `rhs` is 0. The behavior is undefined unless the resulting value is in the valid range for a `Datetime` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] xref:BloombergLP/bdlt/operator_plus-087.adoc[operator+]( 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..._]# Return a `DatetimeInterval` object whose value is the sum of the specified `lhs` and `rhs` time intervals. The behavior is undefined unless the resulting time interval value is valid (i.e., the days field must not overflow a 32‐bit integer). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/DatetimeInterval.adoc[bdlt::DatetimeInterval] xref:BloombergLP/bdlt/operator_plus-0d.adoc[operator+]( 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..._]# Return a `Time` value that is the sum of the specified `lhs` datetime interval and the specified `rhs` time. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/Time.adoc[bdlt::Time] xref:BloombergLP/bdlt/operator_plus-0b.adoc[operator+]( 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..._]# Return a `Time` value that is the sum of the specified `lhs` time and the specified `rhs` datetime interval. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/Time.adoc[bdlt::Time] xref:BloombergLP/bdlt/operator_plus-082.adoc[operator+]( 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..._]# Return a `Datetime` object having a value that is the sum of the specified `lhs` (`bsls::TimeInterval`) and the specified `rhs` (`Datetime`). If `24 == rhs.hour()`, the result is the same as if the `hour` attribute of `rhs` is 0. The behavior is undefined unless the resulting value is in the valid range for a `Datetime` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] xref:BloombergLP/bdlt/operator_plus-069.adoc[operator+]( 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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#