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);
Return the date that is later by numDays from the specified date.
bdlt::Date
operator+(
Date const& date,
int numDays);
Return the sum of a datetime and a datetime interval.
bdlt::Datetime
operator+(
Datetime const& lhs,
DatetimeInterval const& rhs);
Return the sum of a datetime and a time interval.
bdlt::Datetime
operator+(
Datetime const& lhs,
bsls::TimeInterval const& rhs);
Return the sum of a datetime interval and a datetime.
bdlt::Datetime
operator+(
DatetimeInterval const& lhs,
Datetime const& rhs);
Return the sum of the specified lhs and rhs time intervals.
bdlt::DatetimeInterval
operator+(
DatetimeInterval const& lhs,
DatetimeInterval const& rhs);
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);
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);
Return the sum of a time interval and a datetime.
bdlt::Datetime
operator+(
bsls::TimeInterval const& lhs,
Datetime const& rhs);
Return Value
-
date later by
numDaysfromdate -
a
Datetimethat is the sum of the operands -
the sum of
lhsandrhs -
a
Timevalue that is the sum oflhsandrhs
Parameters
Name |
Description |
numDays |
signed number of days to add |
date |
base date |
lhs |
datetime operand |
rhs |
datetime interval to add |
Created with MrDocs