[#BloombergLP-bdlt-Datetime-addHours] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Datetime.adoc[Datetime]::addHours :relfileprefix: ../../../ :mrdocs: Add the specified number of `hours` to the value of this object, adjusting the "date" part of the object accordingly. Return a reference providing modifiable access to this object. If `24 == hour()` on entry, set the `hour` attribute to 0 before performing the addition. The behavior is undefined unless the resulting value is in the valid range for a `Datetime` object. Note that `hours` may be positive, negative, or 0. == Synopsis Declared in `<bdlt_datetime.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/Datetime.adoc[Datetime]& addHours(xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] hours); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#