[#BloombergLP-bsls-TimeInterval-2constructor-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/TimeInterval.adoc[TimeInterval]::TimeInterval :relfileprefix: ../../../ :mrdocs: Create a time interval having the value represented by the specified `duration` when the conversion requires an explicit constructor. See the implicit overload for additional details on behavior and preconditions. == Synopsis Declared in `<bsls_timeinterval.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class REP_TYPE, class PERIOD_TYPE> constexpr explicit TimeInterval( std::chrono::duration<REP_TYPE, PERIOD_TYPE> const& duration, int* = 0) requires TimeInterval_DurationTraits< REP_TYPE, PERIOD_TYPE>::k_EXPLICIT_CONVERSION_ENABLED; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#