BloombergLP::bdlt::EpochUtil::convertToTimeInterval

convertToTimeInterval overloads

Synopses

Declared in <bdlt_epochutil.h>

Return, as a bsls::TimeInterval, the relative time computed as the difference between the specified absolute datetime and the epoch.

static
bsls::TimeInterval
convertToTimeInterval(Datetime const& datetime);
» more...

Load into result the interval from the epoch to datetime.

static
int
convertToTimeInterval(
    bsls::TimeInterval* result,
    Datetime const& datetime);
» more...

Return Value

  • the relative time from the epoch to datetime
  • 0 on success, and a non-zero value otherwise

Parameters

NameDescription
datetimeabsolute datetime in UTC
resultdestination for the converted interval