[#BloombergLP-bdlt-EpochUtil-convertToTimeT64-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/EpochUtil.adoc[EpochUtil]::convertToTimeT64
:relfileprefix: ../../../
:mrdocs:

Return seconds from the epoch to the specified `datetime`&period;

== Synopsis

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

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

== Description

Return the relative time computed as the difference between the specified absolute `datetime` and the epoch&period; Note that `datetime` is assumed to use Coordinated Universal Time (UTC) as a reference&period;

== Return Value

seconds from the epoch to `datetime`

== Parameters

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


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