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

Load into `result` the seconds from the epoch to `datetime`&period;

== Synopsis

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

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

== Description

Load into the specified `result` 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;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| destination for seconds since the epoch
| *datetime*
| absolute datetime in UTC
|===


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