[#BloombergLP-bdlt-DatetimeInterval-2constructor-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval]::DatetimeInterval :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlt_datetimeinterval.h>` Create a time interval object having the value 0. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/DatetimeInterval/2constructor-01.adoc[DatetimeInterval](); ---- [.small]#xref:BloombergLP/bdlt/DatetimeInterval/2constructor-01.adoc[_» more..._]# Create a time interval object having the value of the specified `original` time interval. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlt/DatetimeInterval/2constructor-0e.adoc[DatetimeInterval](xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval] const& original); ---- [.small]#xref:BloombergLP/bdlt/DatetimeInterval/2constructor-0e.adoc[_» more..._]# Create a time interval object having the value given by the specified `days`, and the optionally specified `hours`, `minutes`, `seconds`, `milliseconds`, and `microseconds`. Unspecified arguments default to 0. The behavior is undefined unless the resulting time interval value is valid (i.e., the days field must not overflow a 32‐bit integer). Note that the arguments may be supplied using a mixture of positive, negative, and 0 values. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlt/DatetimeInterval/2constructor-03.adoc[DatetimeInterval]( int days, xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] hours = 0, xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] minutes = 0, xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] seconds = 0, xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] milliseconds = 0, xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] microseconds = 0); ---- [.small]#xref:BloombergLP/bdlt/DatetimeInterval/2constructor-03.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#