[#BloombergLP-bdlt-operator_lt-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::operator< :relfileprefix: ../../ :mrdocs: Return `true` if the specified `lhs` interval is less than `rhs`. == Synopsis Declared in `<bdlt_datetimeinterval.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator<( xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval] const& lhs, xref:BloombergLP/bdlt/DatetimeInterval.adoc[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 [cols="1,4"] |=== | Name| Description | *lhs* | left‐hand time interval | *rhs* | right‐hand time interval |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#