BloombergLP::bdlt::DatetimeInterval::totalSecondsAsDouble

Return this time interval in seconds as a floating-point value.

Synopsis

Declared in <bdlt_datetimeinterval.h>

double
totalSecondsAsDouble() const;

Description

Return the value of this time interval in seconds as a double, potentially with a fractional part. Note that the return value may be negative. Also note that the conversion from the internal representation to double may lose precision.

Return Value

this time interval in seconds as a double