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

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

== Synopsis

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

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

== Description

Return the `bdlt&colon;&colon;Time` value corresponding to the specified `timeValue`, where `timeValue` is a non&hyphen;negative integer 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, 309 is converted to `Time(3, 9)` (03&colon;09&colon;00&period;000)&period; More formally, `timeValue` is interpreted as&colon; &grave; hour &ast; 100 &plus; minute &grave; The behavior is undefined unless `timeValue` represents a valid time in the allowable range for `bdlt&colon;&colon;Time` (00&colon;00&colon;00&period;000 &hyphen; 23&colon;59&colon;00&period;000, and 24&colon;00&colon;00&period;000)&period;

== Return Value

corresponding `Time` value

== Parameters

[cols="1,4"]
|===
| Name| Description
| *timeValue*
| packed HHMM integer
|===


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