[#BloombergLP-bsls-TimeInterval_DurationTraits]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::TimeInterval&lowbar;DurationTraits
:relfileprefix: ../../
:mrdocs:

Trait metafunction that determines whether the `std&colon;&colon;chrono&colon;&colon;duration&lt;REP, PERIOD&gt;` object can be converted to `bsls&colon;&colon;TimeInterval` either implicitly or explicitly&period;

== Synopsis

Declared in `&lt;bsls&lowbar;timeinterval&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class REP,
    class PERIOD&gt;
struct TimeInterval&lowbar;DurationTraits;
----

== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsls/TimeInterval_DurationTraits/k_EXPLICIT_CONVERSION_ENABLED.adoc[`k&lowbar;EXPLICIT&lowbar;CONVERSION&lowbar;ENABLED`] 
| True if the duration converts to `TimeInterval` explicitly&period;
| xref:BloombergLP/bsls/TimeInterval_DurationTraits/k_IMPLICIT_CONVERSION_ENABLED.adoc[`k&lowbar;IMPLICIT&lowbar;CONVERSION&lowbar;ENABLED`] 
| True if the duration converts to `TimeInterval` implicitly&period;
| xref:BloombergLP/bsls/TimeInterval_DurationTraits/k_IS_FLOAT.adoc[`k&lowbar;IS&lowbar;FLOAT`] 
| True if `REP` is a floating&hyphen;point type&period;
| xref:BloombergLP/bsls/TimeInterval_DurationTraits/k_IS_IMPLICIT.adoc[`k&lowbar;IS&lowbar;IMPLICIT`] 
| True if every `duration` value maps to integer nanoseconds&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
