Return true if utcStartTime and utcEndTime form a valid range.
Declared in <baltzo_localtimeperiod.h>
static
bool
isValidUtcStartAndEndTime(
bdlt::Datetime const& utcStartTime,
bdlt::Datetime const& utcEndTime);
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.
true if utcStartTime and utcEndTime form a valid range, and false otherwise
| Name | Description |
|---|---|
| utcStartTime | proposed UTC start time |
| utcEndTime | proposed UTC end time |