Return seconds from the epoch to the specified datetime.

Synopsis

Declared in <bdlt_epochutil.h>

static
EpochUtil::TimeT64
convertToTimeT64(Datetime const& datetime);

Description

Return the relative time computed as the difference between the specified absolute datetime and the epoch. Note that datetime is assumed to use Coordinated Universal Time (UTC) as a reference.

Return Value

seconds from the epoch to datetime

Parameters

Name

Description

datetime

absolute datetime in UTC

Created with MrDocs