[#BloombergLP-bdlt-TimeUtil-convertToHHMMSSmmm]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/TimeUtil.adoc[TimeUtil]::convertToHHMMSSmmm
:relfileprefix: ../../../
:mrdocs:

Convert a `Time` to a nine&hyphen;digit HHMMSSmmm integer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
convertToHHMMSSmmm(xref:BloombergLP/bdlt/Time.adoc[Time] const& value);
----

== Description

Return the non&hyphen;negative integer representing the same time as the specified `value` that, when expressed in decimal notation, contains exactly nine digits (counting leading zeros, if any)&colon; two digits for the hour, two digits for the minute, two digits for the second, and three digits for the millisecond&period; For example, `Time(3, 9, 7, 56)` is converted to 30907056&period; More formally, this method returns&colon; &grave; value&period;hour() &ast; 10000000 &plus; value&period;minute() &ast; 100000 &plus; value&period;second() &ast; 1000 &plus; value&period;millisecond() &grave;

== Return Value

packed HHMMSSmmm integer

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| time to pack as HHMMSSmmm
|===


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