BloombergLP::bdlt::Time::getTime

Load the time-of-day attributes of this object into the given addresses.

Synopsis

Declared in <bdlt_time.h>

void
getTime(
    int* hour,
    int* minute = 0,
    int* second = 0,
    int* millisecond = 0,
    int* microsecond = 0) const;

Description

Load, into the specified hour, and the optionally specified minute, second, millisecond, and microsecond, the respective hour, minute, second, millisecond, and microsecond attribute values from this time object. Unspecified arguments default to 0. Supplying 0 for an address argument suppresses the loading of the value for the corresponding attribute, but has no effect on the loading of other attribute values.

Parameters

NameDescription
hourreceives the hour attribute
minutereceives the minute attribute (optional)
secondreceives the second attribute (optional)
millisecondreceives the millisecond attribute (optional)
microsecondreceives the microsecond attribute (optional)