Load into result the Datetime for time seconds after the epoch.
Synopsis
Declared in <bdlt_epochutil.h>
static
void
convertFromTimeT(
Datetime* result,
std::time_t time);
Description
Load into the specified result the absolute datetime converted to a Datetime, computed as the sum of the specified relative time and the epoch. The behavior is undefined unless 0 <= time and 0 == convertToTimeT(&time, *result) (i.e., time is representable as a 32‐bit int). Note that result will use Coordinated Universal Time (UTC) as a reference.
Parameters
Name |
Description |
result |
destination for the converted datetime |
time |
seconds since the Unix epoch |
Created with MrDocs