[#BloombergLP-bdlt-DatetimeInterval-setTotalMillisecondsIfValid] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval]::setTotalMillisecondsIfValid :relfileprefix: ../../../ :mrdocs: Set this interval to the specified total `milliseconds` if valid. == Synopsis Declared in `<bdlt_datetimeinterval.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int setTotalMillisecondsIfValid(xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] milliseconds); ---- == Description Set the overall value of this object to indicate the specified number of `milliseconds`. Return 0 if the resulting time interval value is valid (i.e., the days field must not overflow an `int`) and a non‐zero value (with no effect) otherwise. == Return Value 0 on success, and a non‐zero value (with no effect) otherwise == Parameters [cols="1,4"] |=== | Name| Description | *milliseconds* | total milliseconds |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#