Load into result the interval from the epoch to datetime.
Synopsis
Declared in <bdlt_epochutil.h>
static
int
convertToTimeInterval(
bsls::TimeInterval* result,
Datetime const& datetime);
Description
If datetime ‐ epoch() >= DatetimeInterval(), load into the specified result the relative time converted to a bsls::TimeInterval, computed as the difference between the specified absolute datetime and the epoch, and return 0. Otherwise, return a non‐zero value (with no effect on result).
DEPRECATED: Use convertToTimeInterval(datetime) instead.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
result |
destination for the converted interval |
datetime |
absolute datetime in UTC |
Created with MrDocs