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 from hour and optional finer fields.

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

Parameters

NameDescription
timetime part to set
hourhour attribute
minuteminute attribute (default 0)
secondsecond attribute (default 0)
millisecondmillisecond attribute (default 0)
microsecondmicrosecond attribute (default 0)