BloombergLP::bdlt::Time::addHours

Increase this time by hours; return midnight-boundary crossings.

Synopsis

Declared in <bdlt_time.h>

int
addHours(int hours);

Description

Increase the value of this time object by the specified number of hours, and return the (signed) number of times that the 23:59:59.999999 - 00:00:00.000000 boundary was crossed in performing the operation. Note that hours may be negative.

Return Value

the (signed) number of midnight-boundary crossings

Parameters

NameDescription
hourssigned number of hours to add