Increase this time by interval; return midnight‐boundary crossings.
Synopsis
Declared in <bdlt_time.h>
int
addInterval(DatetimeInterval const& interval);
Description
Increase the value of this time object by the specified interval of time, and return the (signed) number of times that the 23:59:59.999999 ‐ 00:00:00.000000 boundary was crossed in performing the operation. The behavior is undefined unless the number of crossings that would be returned can be represented by an int.
Return Value
the (signed) number of midnight‐boundary crossings
Parameters
Name |
Description |
interval |
datetime interval to add |
Created with MrDocs