BloombergLP::bdlt::Time::Time

Create a Time object from the specified time-of-day fields.

Synopsis

Declared in <bdlt_time.h>

explicit
Time(
    int hour,
    int minute = 0,
    int second = 0,
    int millisecond = 0,
    int microsecond = 0);

Description

Create a Time object having the (valid) value represented by the specified hour, and the optionally specified minute, second, millisecond, and microsecond. Unspecified arguments default to 0. The behavior is undefined unless all of the specified values are within their valid ranges (see isValid).

Parameters

NameDescription
hourhour attribute
minuteminute attribute (default 0)
secondsecond attribute (default 0)
millisecondmillisecond attribute (default 0)
microsecondmicrosecond attribute (default 0)