Set the hour attribute of this object.
Synopsis
Declared in <bdlt_datetime.h>
void
setHour(int hour);
Description
Set the "hour" attribute of this object to the specified hour value. If 24 == hour, set the minute, second, millisecond, and microsecond attributes to 0. The behavior is undefined unless 0 <= hour <= 24. Note that this method has no effect on the "date" part of this object.
Parameters
Name |
Description |
hour |
hour attribute to set |
Created with MrDocs