[#BloombergLP-baltzo-LocalTimePeriod-setUtcStartAndEndTime]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/LocalTimePeriod.adoc[LocalTimePeriod]::setUtcStartAndEndTime
:relfileprefix: ../../../
:mrdocs:

Use the specified `utcStartTime` and `utcEndTime` to set the corresponding attributes of this object&period;

== Synopsis

Declared in `&lt;baltzo&lowbar;localtimeperiod&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setUtcStartAndEndTime(
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& utcStartTime,
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& utcEndTime);
----

== Description

The behavior is undefined unless `utcStartTime &equals;&equals; utcEndTime`, or if `utcStartTime` and `utcEndTime` are comparable (i&period;e&period;, neither equals a default constructed `bdlt&colon;&colon;DateTime` object) unless &grave;utcStartTime &lt; utcEndTime`&period; (See the `isValidUtcStartAndEndTime&grave; method&period;)

== Parameters

[cols="1,4"]
|===
| Name| Description
| *utcStartTime*
| UTC start time of the period
| *utcEndTime*
| UTC end time of the period
|===


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