Set the hour attribute of this time object.
Declared in <bdlt_time.h>
void
setHour(int hour);
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.
| Name | Description |
|---|---|
| hour | hour attribute to set |