BloombergLP::bdlt::Datetime::setTime

setTime overloads

Synopses

Declared in <bdlt_datetime.h>

Set the "time" part of this object to have the value of the specified time. Note that this method has no effect on the "date" part of this object.

void
setTime(Time const& time);
» more...

Set the "time" part of this object to have the value represented by the specified hour attribute value and the optionally specified minute, second, millisecond, and microsecond attribute values. Unspecified trailing optional parameters default to 0. The behavior is undefined unless hour, minute, second, millisecond, and microsecond represent a valid "time" portion of a Datetime value. Note that this method has no effect on the "date" part of this object.

void
setTime(
    int hour,
    int minute = 0,
    int second = 0,
    int millisecond = 0,
    int microsecond = 0);
» more...