[#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. == Synopsis Declared in `<baltzo_localtimeperiod.h>` [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.e., neither has the value of a default‐constructed `bdlt::DateTime` object) and `utcStartTime < utcEndTime`; return `false` otherwise. == 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]#