[#BloombergLP-bdlt-EpochUtil-convertToTimeInterval-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/EpochUtil.adoc[EpochUtil]::convertToTimeInterval
:relfileprefix: ../../../
:mrdocs:

Return, as a `bsls&colon;&colon;TimeInterval`, 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/bsls/TimeInterval.adoc[bsls::TimeInterval]
convertToTimeInterval(xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& datetime);
----


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