[#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‐digit HHMMSSmmm integer. == Synopsis Declared in `<bdlt_timeutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int convertToHHMMSSmmm(xref:BloombergLP/bdlt/Time.adoc[Time] const& value); ---- == Description Return the non‐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): two digits for the hour, two digits for the minute, two digits for the second, and three digits for the millisecond. For example, `Time(3, 9, 7, 56)` is converted to 30907056. More formally, this method returns: ` value.hour() * 10000000 + value.minute() * 100000 + value.second() * 1000 + value.millisecond() ` == 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]#