[#BloombergLP-bdlt-DatetimeInterval-setTotalSecondsFromDouble] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval]::setTotalSecondsFromDouble :relfileprefix: ../../../ :mrdocs: Set the overall value of this object to indicate the specified number of `seconds`. The fractional part of `seconds`, if any, is rounded to the nearest whole number of microseconds. The behavior is undefined unless the resulting time interval value is valid (i.e., the days field must not overflow a 32‐bit integer). == Synopsis Declared in `<bdlt_datetimeinterval.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setTotalSecondsFromDouble(double seconds); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#