[#BloombergLP-bdlt-Time-getTime]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Time.adoc[Time]::getTime
:relfileprefix: ../../../
:mrdocs:

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&period; Unspecified arguments default to 0&period; 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&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;time&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
getTime(
    int* hour,
    int* minute = 0,
    int* second = 0,
    int* millisecond = 0,
    int* microsecond = 0) const;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
