Add the specified number of hours to this time interval.

Synopsis

Declared in <bsls_timeinterval.h>

constexpr
TimeInterval&
addHours(bsls::Types::Int64 hours);

Description

Add to this time interval the number of seconds represented by the specified integral number of hours, and return a reference providing modifiable access to this object. The behavior is undefined unless the number of seconds in hours, and the total number of seconds in the resulting time interval, can both be represented with 64‐bit signed integers. Note that hours may be negative.

Return Value

a reference providing modifiable access to this object

Parameters

Name

Description

hours

hours to add

Created with MrDocs