[#BloombergLP-bdlt-EpochUtil-convertToDatetimeInterval-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/EpochUtil.adoc[EpochUtil]::convertToDatetimeInterval :relfileprefix: ../../../ :mrdocs: `convertToDatetimeInterval` overloads == Synopses Declared in `<bdlt_epochutil.h>` Return, as a `DatetimeInterval`, the relative time computed as the difference between the specified absolute `datetime` and the epoch. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval] xref:BloombergLP/bdlt/EpochUtil/convertToDatetimeInterval-07.adoc[convertToDatetimeInterval](xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& datetime); ---- [.small]#xref:BloombergLP/bdlt/EpochUtil/convertToDatetimeInterval-07.adoc[_» more..._]# Load into `result` the interval from the epoch to `datetime`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdlt/EpochUtil/convertToDatetimeInterval-09.adoc[convertToDatetimeInterval]( xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval]* result, xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& datetime); ---- [.small]#xref:BloombergLP/bdlt/EpochUtil/convertToDatetimeInterval-09.adoc[_» more..._]# == Return Value * the relative time from the epoch to `datetime` * 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *datetime* | absolute datetime in UTC | *result* | destination for the converted interval |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#