[#BloombergLP-bdlt-Datetime-setTime-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Datetime.adoc[Datetime]::setTime
:relfileprefix: ../../../
:mrdocs:

`setTime` overloads

== Synopses

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

Set the &quot;time&quot; part of this object to have the value of the specified `time`&period; Note that this method has no effect on the &quot;date&quot; part of this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlt/Datetime/setTime-03.adoc[setTime](xref:BloombergLP/bdlt/Time.adoc[Time] const& time);
----

[.small]#xref:BloombergLP/bdlt/Datetime/setTime-03.adoc[_» more&period;&period;&period;_]#

Set the time part from hour and optional finer fields&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlt/Datetime/setTime-0d.adoc[setTime](
    int hour,
    int minute = 0,
    int second = 0,
    int millisecond = 0,
    int microsecond = 0);
----

[.small]#xref:BloombergLP/bdlt/Datetime/setTime-0d.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *time*
| time part to set
| *hour*
| hour attribute
| *minute*
| minute attribute (default 0)
| *second*
| second attribute (default 0)
| *millisecond*
| millisecond attribute (default 0)
| *microsecond*
| microsecond attribute (default 0)
|===


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