Add the specified number of microseconds to this datetime.

Synopsis

Declared in <bdlt_datetime.h>

Datetime&
addMicroseconds(bsls::Types::Int64 microseconds);

Description

Add the specified number of microseconds to the value of this object, adjusting the "date" part of the object accordingly. Return a reference providing modifiable access to this object. If 24 == hour() on entry, set the hour attribute to 0 before performing the addition. The behavior is undefined unless the resulting value is in the valid range for a Datetime object. Note that microseconds may be positive, negative, or 0.

Return Value

reference to this object

Parameters

Name

Description

microseconds

number of microseconds to add (may be negative)

Created with MrDocs