[#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 `&lt;bdlt&lowbar;datetimeinterval&period;h&gt;`

Create a time interval object having the value 0&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlt/DatetimeInterval/2constructor-01.adoc[DatetimeInterval]();
----

[.small]#xref:BloombergLP/bdlt/DatetimeInterval/2constructor-01.adoc[_» more&period;&period;&period;_]#

Create a time interval object having the value of the specified `original` time interval&period;


[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&period;&period;&period;_]#

Create a time interval from the specified field values&period;


[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&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| time interval to copy
| *days*
| day count
| *hours*
| hour count (optional)
| *minutes*
| minute count (optional)
| *seconds*
| second count (optional)
| *milliseconds*
| millisecond count (optional)
| *microseconds*
| microsecond count (optional)
|===


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