[#BloombergLP-bdlt-EpochUtil-convertToTimeInterval-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/EpochUtil.adoc[EpochUtil]::convertToTimeInterval :relfileprefix: ../../../ :mrdocs: `convertToTimeInterval` overloads == Synopses Declared in `<bdlt_epochutil.h>` Return, as a `bsls::TimeInterval`, 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/bsls/TimeInterval.adoc[bsls::TimeInterval] xref:BloombergLP/bdlt/EpochUtil/convertToTimeInterval-00.adoc[convertToTimeInterval](xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& datetime); ---- [.small]#xref:BloombergLP/bdlt/EpochUtil/convertToTimeInterval-00.adoc[_» more..._]# If `datetime ‐ epoch() >= DatetimeInterval()`, load into the specified `result` the relative time converted to a `bsls::TimeInterval`, computed as the difference between the specified absolute `datetime` and the epoch, and return 0. Otherwise, return a non‐zero value (with no effect on `result`). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdlt/EpochUtil/convertToTimeInterval-06.adoc[convertToTimeInterval]( xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval]* result, xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& datetime); ---- [.small]#xref:BloombergLP/bdlt/EpochUtil/convertToTimeInterval-06.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#