Return the difference between the specified lhs and rhs intervals.

Synopsis

Declared in <bdlt_datetimeinterval.h>

bdlt::DatetimeInterval
operator‐(
    DatetimeInterval const& lhs,
    DatetimeInterval const& rhs);

Description

Return a DatetimeInterval object whose value is the difference between the specified lhs and rhs time intervals. The behavior is undefined unless the resulting time interval value is valid (i.e., the days field must not overflow a 32‐bit integer).

Return Value

the difference between lhs and rhs

Parameters

Name

Description

lhs

left‐hand time interval

rhs

right‐hand time interval

Created with MrDocs