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

Set this interval from a canonical `seconds`&sol;`nanoseconds` pair&period;

== Synopsis

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

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

== Description

Set this time interval to have the value given by the sum of the specified integral number of `seconds`, and the optionally specified integral number of `nanoseconds`, where `seconds` and `nanoseconds` form a canonical representation of a time interval (see &lcub;Representation&rcub;)&period; If unspecified, `nanoseconds` is 0&period; The behavior is undefined unless `&hyphen;999,999,999 &lt;&equals; nanoseconds &lt;&equals; &plus;999,999,999` and `seconds` and `nanoseconds` are either both non&hyphen;negative or both non&hyphen;positive&period; Note that this function provides a subset of the defined behavior of `setInterval` chosen to minimize runtime performance cost&period;

== Parameters

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


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