Add the specified signed time fields; return midnight-boundary crossings.
Declared in <bdlt_time.h>
int
addTime(
int hours,
int minutes = 0,
int seconds = 0,
int milliseconds = 0,
bsls::Types::Int64 microseconds = 0);
Add to the value of this time object the specified (signed) number of hours, and the optionally specified (signed) numbers of minutes, seconds, milliseconds, and microseconds; return the (signed) number of times that the 23:59:59.999999 - 00:00:00.000000 boundary was crossed in performing the operation. Unspecified arguments default to 0.
the (signed) number of midnight-boundary crossings
| Name | Description |
|---|---|
| hours | signed number of hours to add |
| minutes | signed number of minutes to add (default 0) |
| seconds | signed number of seconds to add (default 0) |
| milliseconds | signed number of milliseconds to add (default 0) |
| microseconds | signed number of microseconds to add (default 0) |