Return the absolute Datetime for timeInterval after the epoch.
Synopsis
Declared in <bdlt_epochutil.h>
static
Datetime
convertFromTimeInterval(bsls::TimeInterval const& timeInterval);
Description
Return, as a Datetime, the absolute 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.
Return Value
the absolute datetime corresponding to timeInterval
Parameters
Name |
Description |
timeInterval |
interval from the Unix epoch |
Created with MrDocs