[#BloombergLP-bsls-TimeInterval-setTotalHours] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval]::setTotalHours :relfileprefix: ../../../ :mrdocs: Set the overall value of this object to indicate the specified integral number of `hours`. The behavior is undefined unless the number of seconds in `hours` can be represented with a 64‐bit signed integer. Note that `hours` may be negative. == Synopsis Declared in `<bsls_timeinterval.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void setTotalHours(xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] hours); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#