Return whether duration can form a valid TimeInterval.
Declared in <bsls_timeinterval.h>
template<
class REP,
class PERIOD>
static
bool
isValid(std::chrono::duration<REP, PERIOD> const& duration);
Return true if a TimeInterval object can be constructed from the specified duration, and false otherwise. A time interval can be constructed from duration if duration's value converted to seconds can be represented with a 64-bit signed integer.
true if a TimeInterval can be constructed from duration; false otherwise
| Name | Description |
|---|---|
| duration | chrono duration to validate |