Set the second attribute of this object.

Synopsis

Declared in <bdlt_datetime.h>

void
setSecond(int second);

Description

Set the "second" attribute of this object to the specified second value. If 24 == hour(), set the hour attribute to 0. The behavior is undefined unless 0 <= second <= 59. Note that this method has no effect on the "date" part of this object.

Parameters

Name

Description

second

second attribute to set

Created with MrDocs