Return true if the specified lhs interval is less than rhs.
Synopsis
Declared in <bdlt_datetimeinterval.h>
bool
operator<(
DatetimeInterval const& lhs,
DatetimeInterval const& rhs);
Description
Return true if the nominal relation between the specified lhs and rhs time interval values holds, and false otherwise. lhs is less than rhs if the following expression evaluates to true: ` lhs.days() < rhs.days() || (lhs.days() == rhs.days() && lhs.fractionalDayInMicroseconds() < rhs.fractionalDayInMicroseconds()) ` The other relationships are defined similarly.
Return Value
true if lhs is less than rhs, and false otherwise
Parameters
Name |
Description |
lhs |
left‐hand time interval |
rhs |
right‐hand time interval |
Created with MrDocs