Load into result the Datetime for timeInterval after the epoch.
Synopsis
Declared in <bdlt_epochutil.h>
static
void
convertFromTimeInterval(
Datetime* result,
bsls::TimeInterval const& timeInterval);
Description
Load into the specified result the absolute datetime converted to a Datetime, computed as the sum of the specified relative timeInterval and the epoch. The behavior is undefined unless the conversion result can be represented as a Datetime. Note that the conversion is potentially lossy as the resolution of bsls::TimeInterval is greater than that of Datetime.
Parameters
Name |
Description |
result |
destination for the converted datetime |
timeInterval |
interval from the Unix epoch |
Created with MrDocs