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

This `struct` provides a namespace for common non&hyphen;primitive procedures that operate on `Time` objects&period; These methods are alias&hyphen;safe and exception&hyphen;neutral&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct TimeUtil;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/TimeUtil/convertFromHHMM.adoc[`convertFromHHMM`] 
| Convert a four&hyphen;digit HHMM integer to a `Time`&period;
| xref:BloombergLP/bdlt/TimeUtil/convertFromHHMMSS.adoc[`convertFromHHMMSS`] 
| Convert a six&hyphen;digit HHMMSS integer to a `Time`&period;
| xref:BloombergLP/bdlt/TimeUtil/convertFromHHMMSSmmm.adoc[`convertFromHHMMSSmmm`] 
| Convert a nine&hyphen;digit HHMMSSmmm integer to a `Time`&period;
| xref:BloombergLP/bdlt/TimeUtil/convertToHHMM.adoc[`convertToHHMM`] 
| Convert a `Time` to a four&hyphen;digit HHMM integer&period;
| xref:BloombergLP/bdlt/TimeUtil/convertToHHMMSS.adoc[`convertToHHMMSS`] 
| Convert a `Time` to a six&hyphen;digit HHMMSS integer&period;
| xref:BloombergLP/bdlt/TimeUtil/convertToHHMMSSmmm.adoc[`convertToHHMMSSmmm`] 
| Convert a `Time` to a nine&hyphen;digit HHMMSSmmm integer&period;
| xref:BloombergLP/bdlt/TimeUtil/fromHms.adoc[`fromHms`] 
| Return an optional `Time` built from the specified clock fields&period;
| xref:BloombergLP/bdlt/TimeUtil/isValidHHMM.adoc[`isValidHHMM`] 
| Return whether `timeValue` is a valid packed HHMM integer&period;
| xref:BloombergLP/bdlt/TimeUtil/isValidHHMMSS.adoc[`isValidHHMMSS`] 
| Return whether `timeValue` is a valid packed HHMMSS integer&period;
| xref:BloombergLP/bdlt/TimeUtil/isValidHHMMSSmmm.adoc[`isValidHHMMSSmmm`] 
| Return whether `timeValue` is a valid packed HHMMSSmmm integer&period;
|===



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