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

Return `true` if `utcStartTime` and `utcEndTime` form a valid range&period;

== Synopsis

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

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

== Description

The times are valid if they have the same value, or if they are comparable (i&period;e&period;, neither has the value of a default&hyphen;constructed `bdlt&colon;&colon;DateTime` object) and `utcStartTime &lt; utcEndTime`&semi; return `false` otherwise&period;

== Return Value

`true` if `utcStartTime` and `utcEndTime` form a valid range, and `false` otherwise

== Parameters

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


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