Set the hour attribute if it is in range; otherwise do nothing.
Declared in <bdlt_time.h>
int
setHourIfValid(int hour);
Set the "hour" attribute of this time object to the specified hour value if 0 <= hour <= 24. If 24 == hour, set the remaining attributes to 0. Return 0 on success, and a non-zero value (with no effect) otherwise.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| hour | hour attribute to set |