[#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 `&lt;bsls&lowbar;timeinterval&period;h&gt;`

Return whether `duration` can form a valid `TimeInterval`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class REP,
    class PERIOD&gt;
static
bool
xref:BloombergLP/bsls/TimeInterval/isValid-09.adoc[isValid](std::chrono::duration&lt;REP, PERIOD&gt; const& duration);
----

[.small]#xref:BloombergLP/bsls/TimeInterval/isValid-09.adoc[_» more&period;&period;&period;_]#

Return whether `seconds` and `nanoseconds` form a valid interval&period;


[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&period;&period;&period;_]#

== Return Value

* `true` if a `TimeInterval` can be constructed from `duration`&semi; `false` otherwise
* `true` if a `TimeInterval` can be constructed from the arguments&semi; `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]#
