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

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
static
bool
isValid(
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] seconds,
    int nanoseconds);
----

== Description

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;

== Return Value

`true` if a `TimeInterval` can be constructed from the arguments&semi; `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *seconds*
| whole seconds component
| *nanoseconds*
| nanoseconds component
|===


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