BloombergLP::bdlt::operator==

Return true if the two datetimes have the same value.

Synopsis

Declared in <bdlt_datetime.h>

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

Description

Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two Datetime objects have the same value if they have the same values for their "date" and "time" parts, respectively.

Return Value

true if the two datetimes have the same value

Parameters

NameDescription
lhsleft-hand datetime operand
rhsright-hand datetime operand