BloombergLP::bdlt::operator==

Return true if the specified lhs and rhs intervals are equal.

Synopsis

Declared in <bdlt_datetimeinterval.h>

bool
operator==(
    DatetimeInterval const& lhs,
    DatetimeInterval const& rhs);

Description

Return true if the specified lhs and rhs time intervals have the same value, and false otherwise. Two time intervals have the same value if all of the corresponding values of their days, hours, minutes, seconds, milliseconds, and microseconds fields are the same.

Return Value

true if lhs and rhs have the same value, and false otherwise

Parameters

NameDescription
lhsleft-hand time interval
rhsright-hand time interval