[#BloombergLP-bslmt-SaturatedTimeConversionImpUtil-toMillisec-027]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/SaturatedTimeConversionImpUtil.adoc[SaturatedTimeConversionImpUtil]::toMillisec
:relfileprefix: ../../../
:mrdocs:

Convert `src` to milliseconds with saturation&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;saturatedtimeconversionimputil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
toMillisec(
    xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64]* dst,
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& src);
----

== Description

Assign to the specified `dst` the value of the specified `src` converted to milliseconds, and if that value is a negative time interval, set `dst` to 0, and if that value is greater than the maximum representable value of `dst` set `dst` to its maximum representable value&period; See &lcub;Conversion to Milliseconds&rcub;&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dst*
| destination receiving the millisecond count
| *src*
| source time interval to convert
|===


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