BloombergLP::bdlt::operator+

Addition operators

Synopses

Declared in <bdlt_date.h>

Return the date that is later by numDays from the specified date.

bdlt::Date
operator+(
    int numDays,
    Date const& date);
» more...

Return the date that is later by numDays from the specified date.

bdlt::Date
operator+(
    Date const& date,
    int numDays);
» more...

Return the sum of a datetime and a datetime interval.

bdlt::Datetime
operator+(
    Datetime const& lhs,
    DatetimeInterval const& rhs);
» more...

Return the sum of a datetime and a time interval.

bdlt::Datetime
operator+(
    Datetime const& lhs,
    bsls::TimeInterval const& rhs);
» more...

Return the sum of a datetime interval and a datetime.

bdlt::Datetime
operator+(
    DatetimeInterval const& lhs,
    Datetime const& rhs);
» more...

Return the sum of the specified lhs and rhs time intervals.

bdlt::DatetimeInterval
operator+(
    DatetimeInterval const& lhs,
    DatetimeInterval const& rhs);
» more...

Return a Time value that is the sum of the specified lhs datetime interval and the specified rhs time.

bdlt::Time
operator+(
    DatetimeInterval const& lhs,
    Time const& rhs);
» more...

Return a Time value that is the sum of the specified lhs time and the specified rhs datetime interval.

bdlt::Time
operator+(
    Time const& lhs,
    DatetimeInterval const& rhs);
» more...

Return the sum of a time interval and a datetime.

bdlt::Datetime
operator+(
    bsls::TimeInterval const& lhs,
    Datetime const& rhs);
» more...

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

NameDescription
numDayssigned number of days to add
datebase date
lhsdatetime operand
rhsdatetime interval to add