[#BloombergLP-bdlt-Time-setTime] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Time.adoc[Time]::setTime :relfileprefix: ../../../ :mrdocs: Set the value of this time object to 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`). == Synopsis Declared in `<bdlt_time.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setTime( int hour, int minute = 0, int second = 0, int millisecond = 0, int microsecond = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#