Return true if utcStartTime and utcEndTime form a valid range.

Synopsis

Declared in <baltzo_localtimeperiod.h>

static
bool
isValidUtcStartAndEndTime(
    bdlt::Datetime const& utcStartTime,
    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

Name

Description

utcStartTime

proposed UTC start time

utcEndTime

proposed UTC end time

Created with MrDocs