BloombergLP::bdlt::EpochUtil::convertToTimeT

convertToTimeT overloads

Synopses

Declared in <bdlt_epochutil.h>

Return seconds from the epoch to the specified datetime.

static
std::time_t
convertToTimeT(Datetime const& datetime);
» more...

Load into result the seconds from the epoch to datetime.

static
int
convertToTimeT(
    std::time_t* result,
    Datetime const& datetime);
» more...

Return Value

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

Parameters

NameDescription
datetimeabsolute datetime in UTC
resultdestination for seconds since the epoch