Add the specified number of days to this datetime.

Synopsis

Declared in <bdlt_datetime.h>

Datetime&
addDays(int days);

Description

Add the specified number of days to the value of this object. Return a reference providing modifiable access to this object. The behavior is undefined unless the resulting value is in the valid range for a Datetime object. Note that this method has no effect on the "time" part of this object. Also note that days may be positive, 0, or negative.

Return Value

reference to this object

Parameters

Name

Description

days

number of days to add (may be negative)

Created with MrDocs