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);
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);
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);
Parameters
Name |
Description |
date |
date part to set |
time |
time part to set |
hour |
hour attribute (default 0) |
minute |
minute attribute (default 0) |
second |
second attribute (default 0) |
millisecond |
millisecond attribute (default 0) |
microsecond |
microsecond attribute (default 0) |
year |
year attribute |
month |
month attribute |
day |
day‐of‐month attribute |
Created with MrDocs