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

Assign `src` to `&ast;dst`, saturating to the representable range&period;

== Synopsis

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

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

== Description

Assign to the specified `dst` the value of the specified `src`, and if `src` is less than the lowest representable value of `&ast;dst`, set `&ast;dst` to the minimum value it can represent, and if `src` is greater than the highest representable value of `&ast;dst`, set `&ast;dst` to the maximum value that it can represent&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dst*
| destination time specification to assign
| *src*
| source time interval to convert
|===


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