Return an optional having a Time with the specified hour, minute, second, and the optionally specified millisecond and microsecond, if those form a valid Time (see Time::isValid); otherwise return an optional without a value.

Synopsis

Declared in <bdlt_timeutil.h>

static
bsl::optional<Time>
fromHms(
    int hour,
    int minute,
    int second,
    int millisecond = 0,
    int microsecond = 0);

Created with MrDocs