[#BloombergLP-bsls-TimeInterval-isValid-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval]::isValid :relfileprefix: ../../../ :mrdocs: `isValid` overloads == Synopses Declared in `<bsls_timeinterval.h>` Return whether `duration` can form a valid `TimeInterval`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class REP, class PERIOD> static bool xref:BloombergLP/bsls/TimeInterval/isValid-09.adoc[isValid](std::chrono::duration<REP, PERIOD> const& duration); ---- [.small]#xref:BloombergLP/bsls/TimeInterval/isValid-09.adoc[_» more..._]# Return whether `seconds` and `nanoseconds` form a valid interval. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool xref:BloombergLP/bsls/TimeInterval/isValid-0a.adoc[isValid]( xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] seconds, int nanoseconds); ---- [.small]#xref:BloombergLP/bsls/TimeInterval/isValid-0a.adoc[_» more..._]# == Return Value * `true` if a `TimeInterval` can be constructed from `duration`; `false` otherwise * `true` if a `TimeInterval` can be constructed from the arguments; `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *duration* | chrono duration to validate | *seconds* | whole seconds component | *nanoseconds* | nanoseconds component |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#