BloombergLP::bdlt::EpochUtil::convertFromDatetimeInterval

Load into result the Datetime for datetimeInterval after the epoch.

Synopsis

Declared in <bdlt_epochutil.h>

static
void
convertFromDatetimeInterval(
    Datetime* result,
    DatetimeInterval const& datetimeInterval);

Description

Load into the specified result the absolute datetime converted to a Datetime, computed as the sum of the specified relative datetimeInterval and the epoch. The behavior is undefined unless the conversion result can be represented as a Datetime.

Parameters

NameDescription
resultdestination for the converted datetime
datetimeIntervalinterval from the Unix epoch