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

This utility `struct` provides functions to convert between time&hyphen;interval representations&period;

== Synopsis

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

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

== Description

This utility `struct`, `IntervalConversionUtil`, defines functions to convert between `bsls&colon;&colon;TimeInterval` and `bdlt&colon;&colon;DatetimeInterval` representations of time intervals&period;

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/IntervalConversionUtil/convertToDatetimeInterval.adoc[`convertToDatetimeInterval`] 
| Return the (approximate) value of `interval` as a `bdlt&colon;&colon;DatetimeInterval`&period;
| xref:BloombergLP/bdlt/IntervalConversionUtil/convertToTimeInterval.adoc[`convertToTimeInterval`] 
| Return as a `bsls&colon;&colon;TimeInterval` the value of the specified `interval`&period;
|===



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