[#BloombergLP-bsls-TimeInterval-addHours]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval]::addHours
:relfileprefix: ../../../
:mrdocs:

Add the specified number of `hours` to this time interval&period;

== Synopsis

Declared in `&lt;bsls&lowbar;timeinterval&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval]&
addHours(xref:BloombergLP/bsls/Types/Int64.adoc[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&period; 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&hyphen;bit signed integers&period; Note that `hours` may be negative&period;

== Return Value

a reference providing modifiable access to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hours*
| hours to add
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
