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);
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).
static
int
convertToTimeInterval(
bsls::TimeInterval* result,
Datetime const& datetime);
Created with MrDocs