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

Name

Description

lhs

left‐hand date operand

rhs

right‐hand date operand

Created with MrDocs