[#BloombergLP-bdlt-EpochUtil-convertToDatetimeInterval-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/EpochUtil.adoc[EpochUtil]::convertToDatetimeInterval
:relfileprefix: ../../../
:mrdocs:

Return, as a `DatetimeInterval`, the relative time computed as the difference between the specified absolute `datetime` and the epoch&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval]
convertToDatetimeInterval(xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& datetime);
----

== Return Value

the relative time from the epoch to `datetime`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *datetime*
| absolute datetime in UTC
|===


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