BloombergLP::bdlt::EpochUtil::convertToDatetimeInterval

If datetime - epoch() >= DatetimeInterval(), load into the specified result the relative time converted to a DatetimeInterval, computed as the difference between the specified absolute datetime and the epoch, and return 0. Otherwise, return a non-zero value (with no effect on result).

Synopsis

Declared in <bdlt_epochutil.h>

static
int
convertToDatetimeInterval(
    DatetimeInterval* result,
    Datetime const& datetime);

Description

DEPRECATED: Use convertToDatetimeInterval(datetime) instead.