BloombergLP::bdlt::EpochUtil::convertFromTimeT

Load into the specified result the absolute datetime converted to a Datetime, computed as the sum of the specified relative time and the epoch. The behavior is undefined unless 0 <= time and 0 == convertToTimeT(&time, *result) (i.e., time is representable as a 32-bit int). Note that result will use Coordinated Universal Time (UTC) as a reference.

Synopsis

Declared in <bdlt_epochutil.h>

static
void
convertFromTimeT(
    Datetime* result,
    std::time_t time);