Set the value of this object to a Datetime whose "date" part has the value represented by the specified date, and whose "time" part has the value represented by the optionally specified hour, minute, second, millisecond, and microsecond attributes. Unspecified trailing optional parameters default to 0. The behavior is undefined unless the attributes (collectively) represent a valid Datetime value (see isValid).

Synopsis

Declared in <bdlt_datetime.h>

void
setDatetime(
    Date const& date,
    int hour = 0,
    int minute = 0,
    int second = 0,
    int millisecond = 0,
    int microsecond = 0);

Created with MrDocs