[#BloombergLP-bdlt-DatetimeInterval-addHours] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval]::addHours :relfileprefix: ../../../ :mrdocs: Add to this time interval the specified number of `hours`, and return a reference providing modifiable access to this object. The behavior is undefined unless the resulting time interval value is valid (i.e., the days field must not overflow a 32‐bit integer). == Synopsis Declared in `<bdlt_datetimeinterval.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval]& addHours(xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] hours); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#