[#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`/`nanoseconds` pair. == Synopsis Declared in `<bsls_timeinterval.h>` [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 {Representation}). If unspecified, `nanoseconds` is 0. The behavior is undefined unless `‐999,999,999 <= nanoseconds <= +999,999,999` and `seconds` and `nanoseconds` are either both non‐negative or both non‐positive. Note that this function provides a subset of the defined behavior of `setInterval` chosen to minimize runtime performance cost. == Parameters [cols="1,4"] |=== | Name| Description | *seconds* | whole seconds component | *nanoseconds* | nanoseconds component |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#