[#BloombergLP-bdlt-Time-setHour] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Time.adoc[Time]::setHour :relfileprefix: ../../../ :mrdocs: Set the "hour" attribute of this time object to the specified `hour`; if `hour` is 24, set the remaining attributes of this object to 0. The behavior is undefined unless `0 <= hour <= 24`. == Synopsis Declared in `<bdlt_time.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setHour(int hour); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#