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