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

Load into the specified `result` the relative time computed as the difference between the specified absolute `datetime` and the epoch&period; Return 0 on success, and a non&hyphen;zero value (with no effect on `result`) if `datetime &hyphen; epoch() &lt; DatetimeInterval()` or `datetime` cannot be represented in the destination format on all supported platforms (i&period;e&period;, the computed `&ast;result` is not representable as a 32&hyphen;bit `int`)&period; Note that `datetime` is assumed to use Coordinated Universal Time (UTC) as a reference&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
convertToTimeT(
    std::time&lowbar;t* result,
    xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& datetime);
----


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