[#BloombergLP-bsls-TimeInterval-setTotalHours] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval]::setTotalHours :relfileprefix: ../../../ :mrdocs: Set this interval to the specified total number of `hours`. == 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); ---- == Description 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. == Parameters [cols="1,4"] |=== | Name| Description | *hours* | total hours |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#