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