BloombergLP::bdlt::Datetime::setDatetime

setDatetime overloads

Synopses

Declared in <bdlt_datetime.h>

Set this object to the specified date and time.

void
setDatetime(
    Date const& date,
    Time const& time);
» more...

Set this object to the specified date and optional time fields.

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

Set this object from year, month, day, and optional time fields.

void
setDatetime(
    int year,
    int month,
    int day,
    int hour = 0,
    int minute = 0,
    int second = 0,
    int millisecond = 0,
    int microsecond = 0);
» more...

Parameters

NameDescription
datedate part to set
timetime part to set
hourhour attribute (default 0)
minuteminute attribute (default 0)
secondsecond attribute (default 0)
millisecondmillisecond attribute (default 0)
microsecondmicrosecond attribute (default 0)
yearyear attribute
monthmonth attribute
dayday-of-month attribute