BloombergLP::bdlt::operator-

Return the signed number of days between two dates.

Synopsis

Declared in <bdlt_date.h>

int
operator-(
    Date const& lhs,
    Date const& rhs);

Description

Return the (signed) number of days between the specified lhs and rhs dates. Note that if lhs < rhs the result will be negative.

Return Value

number of days from rhs to lhs

Parameters

NameDescription
lhsleft-hand date operand
rhsright-hand date operand