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

Convert a `Time` to a four&hyphen;digit HHMM integer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
convertToHHMM(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 four digits (counting leading zeros, if any)&colon; two digits for the hour and two digits for the minute&period; For example, `Time(3, 9, sec, ms)`, where `0 &lt;&equals; sec &lt; 60` and `0 &lt;&equals; ms &lt; 1000`, is converted to 309&period; More formally, this method returns&colon; &grave; value&period;hour() &ast; 100 &plus; value&period;minute() &grave;

== Return Value

packed HHMM integer

== Parameters

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


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