BloombergLP::bdlt::EpochUtil::convertFromTimeT64

Return the absolute Datetime for time seconds after the epoch.

Synopsis

Declared in <bdlt_epochutil.h>

static
Datetime
convertFromTimeT64(TimeT64 time);

Description

Return, as a Datetime, the absolute datetime computed as the sum of the specified relative time and the epoch. The behavior is undefined unless the converted time can be represented in the destination format. Note that the returned value will use Coordinated Universal Time (UTC) as a reference. Also note that if error detection is desired, the overloaded version that loads the converted time into a supplied destination object should be used.

Return Value

the absolute datetime corresponding to time

Parameters

NameDescription
timeseconds since the Unix epoch