[#BloombergLP-bsls-TimeInterval-isValid-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval]::isValid
:relfileprefix: ../../../
:mrdocs:

Return `true` if a `TimeInterval` object can be constructed from the specified `duration`, and `false` otherwise&period; A time interval can be constructed from `duration` if duration&apos;s value converted to seconds can be represented with a 64&hyphen;bit signed integer&period;

== Synopsis

Declared in `&lt;bsls&lowbar;timeinterval&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class REP,
    class PERIOD&gt;
static
bool
isValid(std::chrono::duration&lt;REP, PERIOD&gt; const& duration);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
