BloombergLP::bdlt::EpochUtil::convertToTimeT64

Load into result the seconds from the epoch to datetime.

Synopsis

Declared in <bdlt_epochutil.h>

static
void
convertToTimeT64(
    TimeT64* result,
    Datetime const& datetime);

Description

Load into the specified result the relative time computed as the difference between the specified absolute datetime and the epoch. Note that datetime is assumed to use Coordinated Universal Time (UTC) as a reference.

Parameters

NameDescription
resultdestination for seconds since the epoch
datetimeabsolute datetime in UTC