[#BloombergLP-bdlt-DatetimeInterval-setTotalSeconds]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval]::setTotalSeconds
:relfileprefix: ../../../
:mrdocs:

Set this interval to the specified total number of `seconds`&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;datetimeinterval&period;h&gt;`

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

== Description

Set the overall value of this object to indicate the specified number of `seconds`&period; The behavior is undefined unless the resulting time interval value is valid (i&period;e&period;, the days field must not overflow a 32&hyphen;bit integer)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *seconds*
| total seconds
|===


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