[#BloombergLP-bsls-TimeInterval-isInDurationRange] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval]::isInDurationRange :relfileprefix: ../../../ :mrdocs: Return whether this interval fits in `DURATION_TYPE`. == Synopsis Declared in `<bsls_timeinterval.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class DURATION_TYPE> bool isInDurationRange() const requires TimeInterval_IsDuration<DURATION_TYPE>::value; ---- == Description Return `true` if the value of this time interval is within the valid range of the parameterized `DURATION_TYPE`, and `false` otherwise. Note that this function does not participate in overload resolution unless `DURATION_TYPE` is an instantiation of `std::chrono::duration`. == Return Value `true` if this interval is within the valid range of `DURATION_TYPE`; `false` otherwise [.small]#Created with https://www.mrdocs.com[MrDocs]#