[#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 `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;


[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 `true` if a `TimeInterval` object can be constructed from the specified `seconds` and `nanoseconds`, and `false` otherwise&period; A time interval can be constructed from `seconds` and `nanoseconds` if their sum results in a time interval whose total number of seconds can be represented with a 64&hyphen;bit signed integer&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;_]#


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