[#BloombergLP-bdlt-DatetimeInterval-setTotalHours] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval]::setTotalHours :relfileprefix: ../../../ :mrdocs: Set this interval to the specified total number of `hours`. == Synopsis Declared in `<bdlt_datetimeinterval.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setTotalHours(xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] hours); ---- == Description Set the overall value of this object to indicate the specified number of `hours`. The behavior is undefined unless the resulting time interval value is valid (i.e., the days field must not overflow a 32‐bit integer). == Parameters [cols="1,4"] |=== | Name| Description | *hours* | total hours |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#