[#BloombergLP-bdlt-EpochUtil-convertFromTimeInterval-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/EpochUtil.adoc[EpochUtil]::convertFromTimeInterval
:relfileprefix: ../../../
:mrdocs:

Return the absolute `Datetime` for `timeInterval` after the epoch&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlt/Datetime.adoc[Datetime]
convertFromTimeInterval(xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& timeInterval);
----

== Description

Return, as a `Datetime`, the absolute datetime computed as the sum of the specified relative `timeInterval` and the epoch&period; The behavior is undefined unless the conversion result can be represented as a `Datetime`&period; Note that the conversion is potentially lossy as the resolution of `bsls&colon;&colon;TimeInterval` is greater than that of `Datetime`&period;

== Return Value

the absolute datetime corresponding to `timeInterval`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *timeInterval*
| interval from the Unix epoch
|===


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