Add the specified time interval rhs to this datetime.

Synopsis

Declared in <bdlt_datetime.h>

Datetime&
operator+=(bsls::TimeInterval const& rhs);

Description

Add to this object the value of the specified rhs object, and return a reference providing modifiable access to this object. If 24 == hour() on entry, set the hour attribute of this object to 0 before performing the addition. The behavior is undefined unless the resulting value is valid for Datetime (see isValid).

Return Value

reference to this object

Parameters

Name

Description

rhs

time interval to add

Created with MrDocs