[#BloombergLP-bsls-TimeInterval-2constructor-000]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval]::TimeInterval
:relfileprefix: ../../../
:mrdocs:

Create a time interval having the value given by the sum of the specified integral number of `seconds` and `nanoseconds`&period; The behavior is undefined unless the total number of seconds in the resulting time interval can be represented with a 64&hyphen;bit signed integer (see `isValid`)&period; Note that there is no restriction on the sign or magnitude of either argument except that they must not violate the method&apos;s preconditions&period;

== Synopsis

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

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


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