[#BloombergLP-bdlt-Time-addInterval]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Time.adoc[Time]::addInterval
:relfileprefix: ../../../
:mrdocs:

Increase this time by `interval`&semi; return midnight&hyphen;boundary crossings&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;time&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
addInterval(xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval] const& interval);
----

== Description

Increase the value of this time object by the specified `interval` of time, and return the (signed) number of times that the 23&colon;59&colon;59&period;999999 &hyphen; 00&colon;00&colon;00&period;000000 boundary was crossed in performing the operation&period; The behavior is undefined unless the number of crossings that would be returned can be represented by an `int`&period;

== Return Value

the (signed) number of midnight&hyphen;boundary crossings

== Parameters

[cols="1,4"]
|===
| Name| Description
| *interval*
| datetime interval to add
|===


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