[#BloombergLP-bdlt-EpochUtil-convertToTimeT-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/EpochUtil.adoc[EpochUtil]::convertToTimeT :relfileprefix: ../../../ :mrdocs: `convertToTimeT` overloads == Synopses Declared in `<bdlt_epochutil.h>` Return seconds from the epoch to the specified `datetime`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::time_t xref:BloombergLP/bdlt/EpochUtil/convertToTimeT-00.adoc[convertToTimeT](xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& datetime); ---- [.small]#xref:BloombergLP/bdlt/EpochUtil/convertToTimeT-00.adoc[_» more..._]# Load into `result` the seconds from the epoch to `datetime`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdlt/EpochUtil/convertToTimeT-0f.adoc[convertToTimeT]( std::time_t* result, xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& datetime); ---- [.small]#xref:BloombergLP/bdlt/EpochUtil/convertToTimeT-0f.adoc[_» more..._]# == Return Value * seconds 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 seconds since the epoch |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#