BloombergLP::bdlt::EpochUtil::convertFromTimeT64

Load into result the Datetime for time seconds after the epoch.

Synopsis

Declared in <bdlt_epochutil.h>

static
int
convertFromTimeT64(
    Datetime* result,
    TimeT64 time);

Description

Load into the specified result the absolute datetime converted to a Datetime, computed as the sum of the specified relative time and the epoch. Return 0 on success, and a non-zero value (with no effect on result) if time cannot be represented in the destination format. Note that result will use Coordinated Universal Time (UTC) as a reference.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
resultdestination for the converted datetime
timeseconds since the Unix epoch