BloombergLP::bdlt::operator<=

Return true if lhs is less than or equal to rhs.

Synopsis

Declared in <bdlt_datetime.h>

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

Description

Return true if the value of the specified lhs object is less than or equal to the value of the specified rhs object, and false otherwise. The behavior is undefined unless 24 != lhs.hour() && 24 != rhs.hour().

Return Value

true if lhs is less than or equal to rhs

Parameters

NameDescription
lhsleft-hand datetime operand
rhsright-hand datetime operand