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

Set the overall value of this object to indicate the specified number of `seconds`&period; The fractional part of `seconds`, if any, is rounded to the nearest whole number of microseconds&period; Return 0 if the resulting time interval value is valid (i&period;e&period;, the `days` field must not overflow an `int`) and a non&hyphen;zero value (with no effect) otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
setTotalSecondsFromDoubleIfValid(double seconds);
----


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