BloombergLP::bdlt::EpochUtil::convertFromTimeT64

convertFromTimeT64 overloads

Synopses

Declared in <bdlt_epochutil.h>

Return the absolute Datetime for time seconds after the epoch.

static
Datetime
convertFromTimeT64(TimeT64 time);
» more...

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

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

Return Value

  • the absolute datetime corresponding to time
  • 0 on success, and a non-zero value otherwise

Parameters

NameDescription
timeseconds since the Unix epoch
resultdestination for the converted datetime