[#BloombergLP-bsls-TimeInterval_DurationTraits] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::TimeInterval_DurationTraits :relfileprefix: ../../ :mrdocs: Trait metafunction that determines whether the `std::chrono::duration<REP, PERIOD>` object can be converted to `bsls::TimeInterval` either implicitly or explicitly. == Synopsis Declared in `<bsls_timeinterval.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class REP, class PERIOD> struct TimeInterval_DurationTraits; ---- == Static Data Members [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsls/TimeInterval_DurationTraits/k_EXPLICIT_CONVERSION_ENABLED.adoc[`k_EXPLICIT_CONVERSION_ENABLED`] | True if the duration converts to `TimeInterval` explicitly. | xref:BloombergLP/bsls/TimeInterval_DurationTraits/k_IMPLICIT_CONVERSION_ENABLED.adoc[`k_IMPLICIT_CONVERSION_ENABLED`] | True if the duration converts to `TimeInterval` implicitly. | xref:BloombergLP/bsls/TimeInterval_DurationTraits/k_IS_FLOAT.adoc[`k_IS_FLOAT`] | True if `REP` is a floating‐point type. | xref:BloombergLP/bsls/TimeInterval_DurationTraits/k_IS_IMPLICIT.adoc[`k_IS_IMPLICIT`] | True if every `duration` value maps to integer nanoseconds. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#