[#BloombergLP-bsls-TimeInterval-isValid-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval]::isValid :relfileprefix: ../../../ :mrdocs: Return whether `duration` can form a valid `TimeInterval`. == Synopsis Declared in `<bsls_timeinterval.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class REP, class PERIOD> static bool isValid(std::chrono::duration<REP, PERIOD> const& duration); ---- == Description Return `true` if a `TimeInterval` object can be constructed from the specified `duration`, and `false` otherwise. A time interval can be constructed from `duration` if duration's value converted to seconds can be represented with a 64‐bit signed integer. == Return Value `true` if a `TimeInterval` can be constructed from `duration`; `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *duration* | chrono duration to validate |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#