Set the hour attribute if it is in range; otherwise do nothing.
Synopsis
Declared in <bdlt_time.h>
int
setHourIfValid(int hour);
Description
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.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
hour |
hour attribute to set |
Created with MrDocs