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

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;

== Synopsis

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

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


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