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);

Load into result the seconds from the epoch to datetime.

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

Return Value

  • seconds from the epoch to datetime

  • 0 on success, and a non‐zero value otherwise

Parameters

Name

Description

datetime

absolute datetime in UTC

result

destination for seconds since the epoch

Created with MrDocs